From 21eca5af5f56b8e7fd92600e5456812bbef948e2 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 30 Mar 2014 19:55:38 +0200 Subject: [PATCH] GL3: Optimize --HG-- branch : opengl3 --- .../nel/src/3d/driver/opengl3/driver_opengl_vertex_program.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/nel/src/3d/driver/opengl3/driver_opengl_vertex_program.cpp b/code/nel/src/3d/driver/opengl3/driver_opengl_vertex_program.cpp index 153a59692..a2f01ac2e 100644 --- a/code/nel/src/3d/driver/opengl3/driver_opengl_vertex_program.cpp +++ b/code/nel/src/3d/driver/opengl3/driver_opengl_vertex_program.cpp @@ -412,7 +412,8 @@ void CDriverGL3::touchLightVP(int i) if (m_VPBuiltinCurrent.LightMode[i] != mode) { m_VPBuiltinCurrent.LightMode[i] = mode; - m_VPBuiltinTouched = true; + if (m_VPBuiltinCurrent.Lighting) + m_VPBuiltinTouched = true; } }