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;