if(!set_current(this))
return;
enable(GL_LIGHTING);
glLightModelfv(GL_LIGHT_MODEL_AMBIENT, &ambient.r);
for(unsigned i=0; i<lights.size(); ++i)
if(!set_current(this))
return;
enable(GL_LIGHTING);
glLightModelfv(GL_LIGHT_MODEL_AMBIENT, &ambient.r);
for(unsigned i=0; i<lights.size(); ++i)