From b06c5518668030b48b862629d8f1814927679db2 Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 4 May 2018 11:30:23 +0300 Subject: [PATCH] * fix qer_alphafunc equal/greater/less/lequal alphatest modes (was always 'gequal') --- radiant/renderstate.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radiant/renderstate.cpp b/radiant/renderstate.cpp index 397ad04d..f636d02a 100644 --- a/radiant/renderstate.cpp +++ b/radiant/renderstate.cpp @@ -2451,16 +2451,22 @@ void OpenGLShader::construct( const char* name ){ { case IShader::eAlways: state.m_alphafunc = GL_ALWAYS; + break; case IShader::eEqual: state.m_alphafunc = GL_EQUAL; + break; case IShader::eLess: state.m_alphafunc = GL_LESS; + break; case IShader::eGreater: state.m_alphafunc = GL_GREATER; + break; case IShader::eLEqual: state.m_alphafunc = GL_LEQUAL; + break; case IShader::eGEqual: state.m_alphafunc = GL_GEQUAL; + break; } } reinterpret_cast( state.m_colour ) = m_shader->getTexture()->color;