From 75771b3d14e1ead89d358dcf0ec50721a9762c22 Mon Sep 17 00:00:00 2001 From: toxieainc Date: Wed, 5 Oct 2022 16:50:03 +0200 Subject: [PATCH] remove 2 dupe function calls, where ProcessLos should actually be rather costly --- Src/Graphics/New3D/New3D.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Src/Graphics/New3D/New3D.cpp b/Src/Graphics/New3D/New3D.cpp index 6e167dd..e47c3c0 100644 --- a/Src/Graphics/New3D/New3D.cpp +++ b/Src/Graphics/New3D/New3D.cpp @@ -369,11 +369,9 @@ void CNew3D::RenderFrame(void) SetRenderStates(); m_r3dShader.DiscardAlpha(true); // discard all translucent pixels in opaque pass - m_r3dFrameBuffers.SetFBO(Layer::colour); bool hasOverlay = RenderScene(pri, renderOverlay, Layer::colour); if (!renderOverlay && ProcessLos(pri)) { - ProcessLos(pri); } DisableRenderStates();