From 393d08532a20de9a3d62f3b743a4aa26777540af Mon Sep 17 00:00:00 2001 From: kaetemi Date: Thu, 3 Apr 2014 00:11:22 +0200 Subject: [PATCH] GL3: Alpha test bugfix --HG-- branch : opengl3 --- code/nel/src/3d/driver/opengl3/driver_opengl_program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);