mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-25 22:34:25 +00:00
togles: fix alpha test on some GPUs( fixes #119 )
This commit is contained in:
parent
efc1fc2a9b
commit
93c71cb74a
@ -693,6 +693,7 @@ CGLMShaderPair::CGLMShaderPair( GLMContext *ctx )
|
|||||||
m_program = gGL->glCreateProgram();
|
m_program = gGL->glCreateProgram();
|
||||||
|
|
||||||
m_locVertexParams = -1;
|
m_locVertexParams = -1;
|
||||||
|
m_locAlphaRef = -1;
|
||||||
m_locVertexBoneParams = -1;
|
m_locVertexBoneParams = -1;
|
||||||
m_locVertexScreenParams = -1;
|
m_locVertexScreenParams = -1;
|
||||||
m_nScreenWidthHeight = 0xFFFFFFFF;
|
m_nScreenWidthHeight = 0xFFFFFFFF;
|
||||||
|
@ -480,7 +480,7 @@ FORCEINLINE void GLMContext::FlushDrawStates( uint nStartIndex, uint nEndIndex,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if( !gGL->m_bHave_GL_QCOM_alpha_test && m_pBoundPair->m_locAlphaRef )
|
if( !gGL->m_bHave_GL_QCOM_alpha_test && m_pBoundPair->m_locAlphaRef != -1 )
|
||||||
{
|
{
|
||||||
if( !m_AlphaTestEnable.GetData().enable )
|
if( !m_AlphaTestEnable.GetData().enable )
|
||||||
gGL->glUniform1f( m_pBoundPair->m_locAlphaRef, 0.0 );
|
gGL->glUniform1f( m_pBoundPair->m_locAlphaRef, 0.0 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user