From 40491b6f5ce5c66f90539e4d9584a4478381930b Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Thu, 15 Jan 2026 22:08:36 -0500 Subject: fix textures drawing upside down --- src/draw.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/draw.odin') diff --git a/src/draw.odin b/src/draw.odin index 2724ce3..43d8c0a 100644 --- a/src/draw.odin +++ b/src/draw.odin @@ -56,10 +56,10 @@ draw_end_frame :: proc() { (f32(rl.GetScreenHeight()) - (SCREEN_HEIGHT * scale)) / 2, } - draw_texture_full( + draw_texture( renderer.screen.texture, screen_start, - scale = Vec2{scale, scale}, + scale = Vec2{scale, -scale}, ) } rl.EndDrawing() @@ -136,7 +136,7 @@ draw_texture_full :: proc( rotation: f32 = 0, scale := Vec2{1, 1}, ) { - size := Vec2{f32(img.width), -f32(img.height)} + size := Vec2{f32(img.width), f32(img.height)} draw_texture_quad(img, Rect{Vec2{0, 0}, size}, position, offset, rotation, scale) } -- cgit v1.3-2-g0d8e