remove 2 dupe function calls, where ProcessLos should actually be rather costly

This commit is contained in:
toxieainc 2022-10-05 16:50:03 +02:00 committed by trzy
parent 412e9232d7
commit 75771b3d14

View file

@ -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();