Don't render sprites with negative xscale or yscale in OpenGL

This commit is contained in:
Jaime Passos 2020-10-17 22:40:49 -03:00
parent 70ada935ec
commit 3ac175660c
1 changed files with 3 additions and 0 deletions

View File

@ -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);