From 3c99323adaf39dc120b2d9ef134e486c1e3d3f1d Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Sat, 14 Sep 2013 20:20:08 +0200 Subject: [PATCH] Apparently typos and redundantly setting uniforms can totally ruin rendering :D --HG-- branch : gsoc2013-dfighter --- code/nel/src/3d/driver/OpenGL3/driver_opengl_material.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/code/nel/src/3d/driver/OpenGL3/driver_opengl_material.cpp b/code/nel/src/3d/driver/OpenGL3/driver_opengl_material.cpp index 862a60819..eade84bd8 100644 --- a/code/nel/src/3d/driver/OpenGL3/driver_opengl_material.cpp +++ b/code/nel/src/3d/driver/OpenGL3/driver_opengl_material.cpp @@ -1161,16 +1161,10 @@ void CDriverGL3::setupSpecularPass(uint pass) setUniform1i( sl1, 1 ); } - int mvl = currentProgram->getUniformIndex( IProgramObject::MVMatrix ); - if( mvl != -1 ) - { - setUniformMatrix4fv( mvl, 1, false, _ModelViewMatrix.get() ); - } - int tml = currentProgram->getUniformIndex( IProgramObject::TexMatrix0 ); if( tml != -1 ) { - setUniformMatrix4fv( mvl, 1, false, _UserTexMat[ 1 ].get() ); + setUniformMatrix4fv( tml, 1, false, _UserTexMat[ 1 ].get() ); } #endif