]> git.tdb.fi Git - libs/gl.git/blobdiff - source/lighting.cpp
Support OpenGL ES on Android
[libs/gl.git] / source / lighting.cpp
index 7f662c72d9ccf55bdb0e5e8831706b9781709360..d1fd9a70ffc0febe50bd9335b753c87418e32549 100644 (file)
@@ -1,4 +1,5 @@
 #include <stdexcept>
+#include <msp/gl/extensions/msp_legacy_features.h>
 #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");