GL3: Alpha test bugfix

--HG--
branch : opengl3
hg/feature/opengl3
kaetemi 11 years ago
parent cda664c62a
commit 393d08532a

@ -761,7 +761,7 @@ void CDriverGL3::setupUniforms(TProgram program)
}
uint alphaRefIdx = p->getUniformIndex(CProgramIndex::AlphaRef);
if (alphaRefIdx)
if (alphaRefIdx != ~0)
nglProgramUniform1f(progId, alphaRefIdx, mat.getAlphaTestThreshold());
NLMISC::CRGBAF selfIllumination = NLMISC::CRGBAF(0.0f, 0.0f, 0.0f);

Loading…
Cancel
Save