Sanity check m_alpha_func

This commit is contained in:
raven02
2014-07-03 13:29:54 +08:00
parent e29a1ddef7
commit 8b9a454e2f
+1 -1
View File
@@ -1083,7 +1083,7 @@ void GLGSRender::ExecCMD()
checkForGlError("glFrontFace");
}
if(m_set_alpha_func && m_set_alpha_ref)
if(m_set_alpha_func && m_set_alpha_ref && m_alpha_func)
{
glAlphaFunc(m_alpha_func, m_alpha_ref);
checkForGlError("glAlphaFunc");