From 6f6e299a7eb36d9f0b13f72cdaed0c35216f18fd Mon Sep 17 00:00:00 2001 From: Auios Date: Sun, 31 Jan 2021 18:13:49 -0600 Subject: [PATCH] DrawTexturePro vertex label correction I noticed the comments referencing the quad's vertices were incorrect. --- src/textures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textures.c b/src/textures.c index 32d995244..f4b8b0da5 100644 --- a/src/textures.c +++ b/src/textures.c @@ -3217,7 +3217,7 @@ void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 else rlTexCoord2f(source.x/width, source.y/height); rlVertex2f(0.0f, 0.0f); - // Bottom-right corner for texture and quad + // Top-left corner for texture and quad if (flipX) rlTexCoord2f((source.x + source.width)/width, (source.y + source.height)/height); else rlTexCoord2f(source.x/width, (source.y + source.height)/height); rlVertex2f(0.0f, dest.height); @@ -3227,7 +3227,7 @@ void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 else rlTexCoord2f((source.x + source.width)/width, (source.y + source.height)/height); rlVertex2f(dest.width, dest.height); - // Top-left corner for texture and quad + // Bottom-right corner for texture and quad if (flipX) rlTexCoord2f(source.x/width, source.y/height); else rlTexCoord2f((source.x + source.width)/width, source.y/height); rlVertex2f(dest.width, 0.0f);