From 6cf53c9ebdb66a7fb991bdcf9f86d64115935a06 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 5 May 2005 21:52:44 +0000 Subject: [PATCH] fix GL lighting --- panda/src/display/graphicsStateGuardian.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panda/src/display/graphicsStateGuardian.cxx b/panda/src/display/graphicsStateGuardian.cxx index 4dd6d3eedf..e53144e92a 100644 --- a/panda/src/display/graphicsStateGuardian.cxx +++ b/panda/src/display/graphicsStateGuardian.cxx @@ -1252,6 +1252,11 @@ do_issue_light() { enable_light(i, true); _light_info[i]._enabled = true; _light_info[i]._next_enabled = true; + + if (!any_bound) { + begin_bind_lights(); + any_bound = true; + } light_obj->bind(this, light, i); break; }