From 6d946081e371c8024d141d65f3894102e0ece522 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Tue, 1 Apr 2014 22:25:35 +0200 Subject: [PATCH] GL3: Fix typo --HG-- branch : opengl3 --- code/nel/src/3d/driver/opengl3/driver_opengl_program.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 3461f111f..e1b8c12a0 100644 --- a/code/nel/src/3d/driver/opengl3/driver_opengl_program.cpp +++ b/code/nel/src/3d/driver/opengl3/driver_opengl_program.cpp @@ -1050,7 +1050,7 @@ void CDriverGL3::setupUniforms(TProgram program) if (ld != ~0) { CVector v = -1 * _UserLight[i].getDirection(); - nglProgramUniform4f(progId, ld, v.x, v.y, v.z, 0.0f); + nglProgramUniform3f(progId, ld, v.x, v.y, v.z); } } else @@ -1059,7 +1059,7 @@ void CDriverGL3::setupUniforms(TProgram program) if (lp != ~0) { CVector v = _UserLight[i].getPosition() - _PZBCameraPos; - nglProgramUniform4f(progId, lp, v.x, v.y, v.z, 0.0f); + nglProgramUniform3f(progId, lp, v.x, v.y, v.z); } }