From 3ac175660ce2bfb438d8b38267fd8fe3ca76812e Mon Sep 17 00:00:00 2001 From: Jaime Passos Date: Sat, 17 Oct 2020 22:40:49 -0300 Subject: [PATCH] Don't render sprites with negative xscale or yscale in OpenGL --- src/hardware/hw_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 89610a8d7..bd4bcf66d 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4849,6 +4849,9 @@ static void HWR_ProjectSprite(mobj_t *thing) if (!thing) return; + if (thing->spritexscale < 1 || thing->spriteyscale < 1) + return; + dispoffset = thing->info->dispoffset; this_scale = FIXED_TO_FLOAT(thing->scale);