diff options
Diffstat (limited to 'source/gameengine/GamePlayer/common')
-rw-r--r-- | source/gameengine/GamePlayer/common/GPC_RenderTools.cpp | 3 | ||||
-rw-r--r-- | source/gameengine/GamePlayer/common/GPC_RenderTools.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp index 743af35ae9b..514a73c4d77 100644 --- a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp +++ b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp @@ -157,9 +157,8 @@ int GPC_RenderTools::ProcessLighting(int layer) void GPC_RenderTools::EnableOpenGLLights() { glEnable(GL_LIGHTING); - glColorMaterial(GL_FRONT_AND_BACK,GL_DIFFUSE); glEnable(GL_COLOR_MATERIAL); - glEnableClientState(GL_NORMAL_ARRAY); + glColorMaterial(GL_FRONT_AND_BACK,GL_DIFFUSE); if (bgl::QueryExtension(bgl::_GL_EXT_separate_specular_color) || bgl::QueryVersion(1, 2)) glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR); } diff --git a/source/gameengine/GamePlayer/common/GPC_RenderTools.h b/source/gameengine/GamePlayer/common/GPC_RenderTools.h index 9c76ccd478d..62b69c07c5c 100644 --- a/source/gameengine/GamePlayer/common/GPC_RenderTools.h +++ b/source/gameengine/GamePlayer/common/GPC_RenderTools.h @@ -64,7 +64,6 @@ public: { glDisable(GL_LIGHTING); glDisable(GL_COLOR_MATERIAL); - glDisableClientState(GL_NORMAL_ARRAY); } void EnableOpenGLLights(); |