aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2017-07-22 18:10:34 +0200
committerraysan5 <raysan5@gmail.com>2017-07-22 18:10:34 +0200
commit2227742e9643e46e50b23efd88d7b54cb3431aa3 (patch)
tree1d8d20b38a0f16a5df5470f7a0ce98933f50eae9 /src
parent814f665bc156100d5bfb7c30ff7cf2699f57b1a4 (diff)
downloadraylib-2227742e9643e46e50b23efd88d7b54cb3431aa3.tar.gz
raylib-2227742e9643e46e50b23efd88d7b54cb3431aa3.zip
Corrected bug on texture rotation
Diffstat (limited to 'src')
-rw-r--r--src/textures.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textures.c b/src/textures.c
index 1436111f..23935bf1 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((float)destRec.x, (float)destRec.y, 0);
- rlRotatef(rotation, 0, 0, 1);
rlTranslatef(-origin.x, -origin.y, 0);
+ rlRotatef(rotation, 0, 0, 1);
+ rlTranslatef((float)destRec.x, (float)destRec.y, 0);
rlBegin(RL_QUADS);
rlColor4ub(tint.r, tint.g, tint.b, tint.a);