343 if (OpenFlipper::Options::gui() && !OpenFlipper::Options::coreProfile())
344 glGetIntegerv(GL_MAX_LIGHTS, &maxLights);
348 for(
int i = 0; i < maxLights; ++i) {
349 lights_.insert(std::pair<GLenum, LightNode*>(GL_LIGHT0 + i, (
LightNode*)0 ));
354 GLenum light = GL_INVALID_ENUM;
355 for(std::map<GLenum, LightNode*>::iterator it = lights_.begin();
356 it != lights_.end(); ++it) {
358 if(it->second == 0) {
359 lights_[it->first] = _node;
368 for(std::map<GLenum, LightNode*>::iterator it = lights_.begin();
369 it != lights_.end(); ++it) {
371 if(it->second == _node) {
372 lights_[it->first] = 0;
379 std::map<GLenum, LightNode*> lights_;