From 48e4a8b2cfc11ba61207ce2d3dfdf3074d9e6d79 Mon Sep 17 00:00:00 2001 From: vl Date: Fri, 9 Jul 2010 16:42:28 +0200 Subject: [PATCH] Added: default value for light 0 (thx valgrind) --- code/nel/src/3d/driver/opengl/driver_opengl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl.cpp b/code/nel/src/3d/driver/opengl/driver_opengl.cpp index b1e584e25..7b540b7b9 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl.cpp @@ -559,6 +559,8 @@ bool CDriverGL::setupDisplay() // meaning that light direction is always (0,1,0) in eye-space // use enableLighting(0....), to get normal behaviour _DriverGLStates.enableLight(0, true); + _LightMode[0] = CLight::DirectionalLight; + _WorldLightDirection[0] = CVector::Null; _Initialized = true;