- fixed culling of mirrored voxels for real this time.

This commit is contained in:
Christoph Oelckers 2021-12-15 21:19:42 +01:00
parent 7f1a3431ca
commit eeabe0fe6d

View file

@ -153,7 +153,7 @@ void HWSprite::DrawSprite(HWDrawInfo* di, FRenderState& state, bool translucent)
state.SetDepthFunc(DF_LEqual);
state.EnableTexture(true);
model->BuildVertexBuffer(&mr);
bool mirrored = ((Sprite->cstat & CSTAT_SECTOR_XFLIP) != 0) ^ ((Sprite->cstat & CSTAT_SECTOR_YFLIP) != 0) ^ portalState.isMirrored();
bool mirrored = ((Sprite->cstat & CSTAT_SPRITE_XFLIP) != 0) ^ ((Sprite->cstat & CSTAT_SPRITE_YFLIP) != 0) ^ portalState.isMirrored();
mr.BeginDrawModel(RenderStyle, nullptr, rotmat, mirrored);
mr.SetupFrame(model, 0, 0, 0);
model->RenderFrame(&mr, TexMan.GetGameTexture(model->GetPaletteTexture()), 0, 0, 0.f, TRANSLATION(Translation_Remap + curbasepal, palette));