Skip to content

Commit 9f17ef2

Browse files
committed
fix: turn texture2d into a ref for draw_texture
1 parent 369a744 commit 9f17ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/isometric2d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async fn main() {
4949
for y in 0..MAP_SIZE.y {
5050
for x in 0..MAP_SIZE.x {
5151
let world_pos = map_to_world(ivec2(x, y));
52-
draw_texture(texture, world_pos.x, world_pos.y, WHITE);
52+
draw_texture(&texture, world_pos.x, world_pos.y, WHITE);
5353
}
5454
}
5555
set_default_camera();

0 commit comments

Comments
 (0)