From 3c712e66aed070dab00f24fa46bc22d6299bde50 Mon Sep 17 00:00:00 2001 From: Violently Date: Wed, 15 Oct 2025 16:02:16 -0400 Subject: [PATCH] Fix DrawBillboardPro so that flipped images that are sampling from part of a larger texture still draw from the same source rectangle --- src/rmodels.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rmodels.c b/src/rmodels.c index 1e7599004..d77e66ee9 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -3899,14 +3899,14 @@ void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector // Flip the content of the billboard while maintaining the counterclockwise edge rendering order if (size.x < 0.0f) { - source.x += size.x; + source.x -= size.x; source.width *= -1.0; right = Vector3Negate(right); origin.x *= -1.0f; } if (size.y < 0.0f) { - source.y += size.y; + source.y -= size.y; source.height *= -1.0; up = Vector3Negate(up); origin.y *= -1.0f;