From c5238516b2ab620a3e97286864df3607b8aa8b36 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Tue, 15 May 2001 01:16:05 +0000 Subject: [PATCH] fix lighting optimization --- panda/src/glgsg/glGraphicsStateGuardian.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/glgsg/glGraphicsStateGuardian.cxx b/panda/src/glgsg/glGraphicsStateGuardian.cxx index f7fab186e5..56ce3f9d9f 100644 --- a/panda/src/glgsg/glGraphicsStateGuardian.cxx +++ b/panda/src/glgsg/glGraphicsStateGuardian.cxx @@ -517,7 +517,7 @@ render_frame(const AllAttributesWrapper &initial_state) { // Now we're done with the frame processing. Clean up. - if (_lighting_enabled) { + if (_lighting_enabled_this_frame) { // 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