aboutsummaryrefslogtreecommitdiff
path: root/raylib/examples/shaders/shaders_write_depth.c
diff options
context:
space:
mode:
Diffstat (limited to 'raylib/examples/shaders/shaders_write_depth.c')
-rw-r--r--raylib/examples/shaders/shaders_write_depth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/raylib/examples/shaders/shaders_write_depth.c b/raylib/examples/shaders/shaders_write_depth.c
index d9e40d0..3169724 100644
--- a/raylib/examples/shaders/shaders_write_depth.c
+++ b/raylib/examples/shaders/shaders_write_depth.c
@@ -1,4 +1,4 @@
-/*******************************************************************************************
+/*******************************************************************************************
*
* raylib [shaders] example - Depth buffer writing
*
@@ -92,7 +92,7 @@ int main(void)
BeginDrawing();
ClearBackground(RAYWHITE);
- DrawTextureRec(target.texture, (Rectangle) { 0, 0, screenWidth, -screenHeight }, (Vector2) { 0, 0 }, WHITE);
+ DrawTextureRec(target.texture, (Rectangle) { 0, 0, (float)screenWidth, (float)-screenHeight }, (Vector2) { 0, 0 }, WHITE);
DrawFPS(10, 10);
EndDrawing();
//----------------------------------------------------------------------------------