summaryrefslogtreecommitdiff
path: root/examples/bmp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bmp.rs')
-rw-r--r--examples/bmp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/bmp.rs b/examples/bmp.rs
index 98561ba..a384f7b 100644
--- a/examples/bmp.rs
+++ b/examples/bmp.rs
@@ -30,7 +30,7 @@ fn main() {
let x = renderer.texture_x(texture).unwrap();
let y = renderer.texture_y(texture).unwrap();
- renderer.push_instance(Instance {
+ renderer.instances_mut().push_instance(Instance {
position: [-0.5, 0.0],
size: [0.75; 2],
texture_size: [width, height],
@@ -38,7 +38,7 @@ fn main() {
..Default::default()
});
- renderer.push_instance(Instance {
+ renderer.instances_mut().push_instance(Instance {
position: [0.5, 0.0],
size: [0.75; 2],
texture_size: [width, height],