diff --git a/code/nel/src/3d/driver/opengl3/driver_opengl_program.cpp b/code/nel/src/3d/driver/opengl3/driver_opengl_program.cpp index 4b9391dad..61e48a797 100644 --- a/code/nel/src/3d/driver/opengl3/driver_opengl_program.cpp +++ b/code/nel/src/3d/driver/opengl3/driver_opengl_program.cpp @@ -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);