summaryrefslogtreecommitdiff
path: root/examples/square.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2022-10-05 11:00:01 -0400
committerMicha White <botahamec@outlook.com>2022-10-05 11:00:01 -0400
commited5b952b313275e58102770e9dda29a7274c363c (patch)
treee4212570a01d3cba217d0dd7bf0328f80c276cfb /examples/square.rs
parent1169cf72ec435a495e1449bdf222bc0ccfd6f62a (diff)
Moved around some logic
Diffstat (limited to 'examples/square.rs')
-rw-r--r--examples/square.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/square.rs b/examples/square.rs
index 7941fe1..1859647 100644
--- a/examples/square.rs
+++ b/examples/square.rs
@@ -19,7 +19,7 @@ fn main() {
let mut renderer = Renderer::new(&config, &event_loop).unwrap();
let texture = renderer
- .texture_from_mem(texture, ImageFormat::Ico)
+ .texture_from_memory(texture, ImageFormat::Ico)
.unwrap();
let width = renderer.texture_width(texture).unwrap();
let height = renderer.texture_height(texture).unwrap();