mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix GL lighting
This commit is contained in:
parent
e204ad6cc6
commit
6cf53c9ebd
@ -1252,6 +1252,11 @@ do_issue_light() {
|
|||||||
enable_light(i, true);
|
enable_light(i, true);
|
||||||
_light_info[i]._enabled = true;
|
_light_info[i]._enabled = true;
|
||||||
_light_info[i]._next_enabled = true;
|
_light_info[i]._next_enabled = true;
|
||||||
|
|
||||||
|
if (!any_bound) {
|
||||||
|
begin_bind_lights();
|
||||||
|
any_bound = true;
|
||||||
|
}
|
||||||
light_obj->bind(this, light, i);
|
light_obj->bind(this, light, i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user