summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-08-04 18:34:51 +0200
committerraysan5 <[email protected]>2017-08-04 18:34:51 +0200
commiteeca607506b22f154a7b31ef8308d3ecd30ad383 (patch)
tree1be62a44111589da9f5ad72eba07eac3fdb6e294 /src/textures.c
parent1f310f7d4b59a5a09589863d4b87df0a40c7779b (diff)
downloadraylib-eeca607506b22f154a7b31ef8308d3ecd30ad383.tar.gz
raylib-eeca607506b22f154a7b31ef8308d3ecd30ad383.zip
Review transforms to match OpenGL 1.1
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textures.c b/src/textures.c
index 23935bf1..1436111f 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -1800,9 +1800,9 @@ void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, V
rlEnableTexture(texture.id);
rlPushMatrix();
- rlTranslatef(-origin.x, -origin.y, 0);
- rlRotatef(rotation, 0, 0, 1);
rlTranslatef((float)destRec.x, (float)destRec.y, 0);
+ rlRotatef(rotation, 0, 0, 1);
+ rlTranslatef(-origin.x, -origin.y, 0);
rlBegin(RL_QUADS);
rlColor4ub(tint.r, tint.g, tint.b, tint.a);