- forgot to implement +SPRITEFLIP for OpenGL

This commit is contained in:
Rachael Alexanderson 2017-05-03 13:55:01 -04:00 committed by Christoph Oelckers
parent 2acb485121
commit 00a4993654

View file

@ -800,7 +800,7 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal)
sprangle = 0.; sprangle = 0.;
rot = 0; rot = 0;
} }
patch = sprites[spritenum].GetSpriteFrame(thing->frame, rot, sprangle, &mirror); patch = sprites[spritenum].GetSpriteFrame(thing->frame, rot, sprangle, &mirror, !!(thing->flags7 & MF7_SPRITEFLIP));
} }
if (!patch.isValid()) return; if (!patch.isValid()) return;
@ -814,7 +814,7 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal)
if (thing->renderflags & RF_YFLIP) std::swap(vt, vb); if (thing->renderflags & RF_YFLIP) std::swap(vt, vb);
gltexture->GetSpriteRect(&r); gltexture->GetSpriteRect(&r);
if (mirror ^ !!(thing->renderflags & RF_XFLIP)) if ((mirror ^ !!(thing->renderflags & RF_XFLIP)) || (thing->flags7 & MF7_SPRITEFLIP))
{ {
r.left = -r.width - r.left; // mirror the sprite's x-offset r.left = -r.width - r.left; // mirror the sprite's x-offset
ul = gltexture->GetSpriteUL(); ul = gltexture->GetSpriteUL();