Skip to content

Commit 9f83142

Browse files
committed
Update core_render_texture.c
1 parent c807265 commit 9f83142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/core/core_render_texture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ int main(void)
8080
// NOTE 2: We flip vertically the texture setting negative source rectangle height
8181
DrawTexturePro(target.texture,
8282
(Rectangle){ 0, 0, target.texture.width, -target.texture.height },
83+
(Rectangle){ screenWidth/2, screenHeight/2, target.texture.width, target.texture.height },
8384
(Vector2){ target.texture.width/2, target.texture.height/2 }, rotation, WHITE);
84-
(Rectangle){ screenWidth/2, screenHeight/2, target.texture.width, target.texture.height },
8585

8686
DrawText("DRAWING BOUNCING BALL INSIDE RENDER TEXTURE!", 10, screenHeight - 40, 20, BLACK);
8787

0 commit comments

Comments
 (0)