From 2404634d5d92a75c64d1822c7d22b52ff4c686a0 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Thu, 25 Oct 2018 12:40:56 +0200 Subject: [PATCH] - fix softpoly bug where sprites and translucent walls in front of models would disappear --- src/polyrenderer/scene/poly_model.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/polyrenderer/scene/poly_model.cpp b/src/polyrenderer/scene/poly_model.cpp index a492129897..fbf5642a68 100644 --- a/src/polyrenderer/scene/poly_model.cpp +++ b/src/polyrenderer/scene/poly_model.cpp @@ -39,6 +39,7 @@ void PolyRenderModel(PolyRenderThread *thread, const Mat4f &worldToClip, uint32_ renderer.AddLights(actor); renderer.RenderModel(x, y, z, smf, actor, r_viewpoint.TicFrac); PolyTriangleDrawer::SetModelVertexShader(thread->DrawQueue, -1, -1, 0.0f); + PolyTriangleDrawer::SetTransform(thread->DrawQueue, thread->FrameMemory->NewObject(worldToClip), nullptr); } void PolyRenderHUDModel(PolyRenderThread *thread, const Mat4f &worldToClip, uint32_t stencilValue, DPSprite *psp, float ofsx, float ofsy)