diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-06-23 05:12:11 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-06-23 05:12:11 +0400 |
commit | 38de9559bc226910578acfc1fb04db77f2be3a62 (patch) | |
tree | 8875c6cf7e585947e432c14c5931df042f7cbb97 /source/gameengine/GamePlayer | |
parent | b506d93f0e6e0a4595ff0287f55aafadf2a66246 (diff) |
Fix for reflection mapping unlit faces: normals were not being sent, hence reflection maps weren't being rendered properly (bf-bug #1385)
Set the diffuse material colour - lighting brightness should match blender better. (bf-bug #1385)
Diffstat (limited to 'source/gameengine/GamePlayer')
-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(); |