From 8b9a454e2f8095873f8a6b8289f04ce2846ecb54 Mon Sep 17 00:00:00 2001 From: raven02 Date: Thu, 3 Jul 2014 13:29:54 +0800 Subject: [PATCH] Sanity check m_alpha_func --- rpcs3/Emu/GS/GL/GLGSRender.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/GS/GL/GLGSRender.cpp b/rpcs3/Emu/GS/GL/GLGSRender.cpp index de13f8285e..a5d9e75731 100644 --- a/rpcs3/Emu/GS/GL/GLGSRender.cpp +++ b/rpcs3/Emu/GS/GL/GLGSRender.cpp @@ -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");