From eeabe0fe6dc072a0175ca71ca8e95c105d155d73 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 15 Dec 2021 21:19:42 +0100 Subject: [PATCH] - fixed culling of mirrored voxels for real this time. --- source/core/rendering/scene/hw_sprites.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/rendering/scene/hw_sprites.cpp b/source/core/rendering/scene/hw_sprites.cpp index 9e886f1ca..ac2031b45 100644 --- a/source/core/rendering/scene/hw_sprites.cpp +++ b/source/core/rendering/scene/hw_sprites.cpp @@ -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));