Skip to content

Commit

Permalink
fix: turn texture2d into a ref for draw_texture
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguydoru committed Nov 17, 2024
1 parent 19db393 commit 0a91c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/isometric2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async fn main() {
for y in 0..MAP_SIZE.y {
for x in 0..MAP_SIZE.x {
let world_pos = map_to_world(ivec2(x, y));
draw_texture(texture, world_pos.x, world_pos.y, WHITE);
draw_texture(&texture, world_pos.x, world_pos.y, WHITE);
}
}
set_default_camera();
Expand Down

0 comments on commit 0a91c38

Please sign in to comment.