Re-enable glFrontFace with sanity check

This commit is contained in:
raven02 2014-05-22 01:08:46 +08:00
commit 94393ff4ea

View file

@ -1037,9 +1037,13 @@ void GLGSRender::ExecCMD()
if (m_set_front_face) if (m_set_front_face)
{ {
//glFrontFace(m_front_face); // glFrontFace : OpenGL error 0x0500 // Sanity check . Disgaea 3 return 0x1d0 here and cause openGL 0x0500
if (m_front_face == GL_CW || m_front_face == GL_CCW)
{
glFrontFace(m_front_face);
checkForGlError("glFrontFace"); checkForGlError("glFrontFace");
} }
}
if(m_set_alpha_func && m_set_alpha_ref) if(m_set_alpha_func && m_set_alpha_ref)
{ {