From 07ef637e072aa6b92b0ad0f1c94dbb062f8798f4 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 18 Oct 2011 08:28:21 +0000 Subject: [PATCH] another GLES2 fix --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index f067f8d8f9..c81cd51eb2 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -6899,6 +6899,7 @@ enable_lighting(bool enable) { //////////////////////////////////////////////////////////////////// void CLP(GraphicsStateGuardian):: set_ambient_light(const LColor &color) { +#ifndef OPENGLES_2 // static PStatCollector _draw_set_state_light_ambient_pcollector("Draw:Set State:Light:Ambient"); // PStatTimer timer(_draw_set_state_light_ambient_pcollector); @@ -6908,6 +6909,7 @@ set_ambient_light(const LColor &color) { c[2] * _light_color_scale[2], c[3] * _light_color_scale[3]); call_glLightModelfv(GL_LIGHT_MODEL_AMBIENT, c); +#endif } ////////////////////////////////////////////////////////////////////