X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Flighting.cpp;fp=source%2Flighting.cpp;h=4cd4858b438fc99ef51a8ffb4702da674b3efd3d;hp=44a01a5e6ab6ade990bd324d0ea7a0f97a5c8e85;hb=b824398c547964c2862c4bf9f76426e1e8a4c1cb;hpb=8ac93980ef87834fd431c97104baa441561a7ce0 diff --git a/source/lighting.cpp b/source/lighting.cpp index 44a01a5e..4cd4858b 100644 --- a/source/lighting.cpp +++ b/source/lighting.cpp @@ -42,7 +42,7 @@ void Lighting::bind() const if(!set_current(this)) return; - enable(LIGHTING); + enable(GL_LIGHTING); glLightModelfv(GL_LIGHT_MODEL_AMBIENT, &ambient.r); for(unsigned i=0; ilights.size(); ++i) if(old->lights[i]) - { - Light::activate(i); - Light::unbind(); - } - disable(LIGHTING); + Light::unbind_from(i); + + disable(GL_LIGHTING); } } // namespace GL