X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flighting.cpp;h=d1fd9a70ffc0febe50bd9335b753c87418e32549;hb=b152e4f63170e8ccd6c9fb9397964c628fb6efeb;hp=7f662c72d9ccf55bdb0e5e8831706b9781709360;hpb=9fff9eb832db3b64416ae49bbdc826f33e3ceb19;p=libs%2Fgl.git diff --git a/source/lighting.cpp b/source/lighting.cpp index 7f662c72..d1fd9a70 100644 --- a/source/lighting.cpp +++ b/source/lighting.cpp @@ -1,4 +1,5 @@ #include +#include #include "error.h" #include "light.h" #include "lighting.h" @@ -71,6 +72,7 @@ void Lighting::update_shader_data(ProgramData &shdata, const Matrix &view_matrix void Lighting::bind() const { + static Require _req(MSP_legacy_features); if(lights.size()>LightUnit::get_n_units()) throw invalid_operation("Lighting::bind");