mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 13:55:38 +00:00
better state handling
This commit is contained in:
parent
9b226ed478
commit
912bb0e7cf
|
@ -210,8 +210,6 @@ bool CNew3D::RenderScene(int priority, bool renderOverlay, bool alpha)
|
|||
}
|
||||
|
||||
glDisable(GL_BLEND);
|
||||
glDepthMask(GL_TRUE);
|
||||
glDisable(GL_STENCIL_TEST);
|
||||
|
||||
return hasOverlay;
|
||||
}
|
||||
|
@ -235,6 +233,7 @@ void CNew3D::RenderFrame(void)
|
|||
|
||||
glDepthFunc (GL_LEQUAL);
|
||||
glEnable (GL_DEPTH_TEST);
|
||||
glDepthMask (GL_TRUE);
|
||||
glActiveTexture (GL_TEXTURE0);
|
||||
glEnable (GL_CULL_FACE);
|
||||
glFrontFace (GL_CW);
|
||||
|
@ -304,6 +303,7 @@ void CNew3D::RenderFrame(void)
|
|||
m_r3dShader.SetShader(false); // unbind shader
|
||||
m_vbo.Bind(false);
|
||||
|
||||
glDisable(GL_STENCIL_TEST);
|
||||
glDisable(GL_CULL_FACE);
|
||||
glDisableClientState(GL_VERTEX_ARRAY);
|
||||
glDisableClientState(GL_NORMAL_ARRAY);
|
||||
|
|
Loading…
Reference in a new issue