From cdf0e0e54d65135eb6a9fa65e9bbef9ff5cf5ae0 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 15 May 2001 00:31:00 +0000 Subject: [PATCH] *** empty log message *** --- panda/src/glgsg/glGraphicsStateGuardian.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/panda/src/glgsg/glGraphicsStateGuardian.cxx b/panda/src/glgsg/glGraphicsStateGuardian.cxx index 81d70956c5..528f98af62 100644 --- a/panda/src/glgsg/glGraphicsStateGuardian.cxx +++ b/panda/src/glgsg/glGraphicsStateGuardian.cxx @@ -515,7 +515,11 @@ render_frame(const AllAttributesWrapper &initial_state) { // Now we're done with the frame processing. Clean up. - if (_lighting_enabled) { + // We can't necessarily rely on this test not to this this right + // now. Come up with a better optimization later. + + // if (_lighting_enabled) { + // Let's turn off all the lights we had on, and clear the light // cache--to force the lights to be reissued next frame, in case // their parameters or positions have changed between frames. @@ -536,7 +540,7 @@ render_frame(const AllAttributesWrapper &initial_state) { // ideal--there may be a better way. Maybe if the lights were just // more aware of whether their parameters or positions have changed // at all? - } + // } #ifndef NDEBUG report_errors();