#include <stdexcept>
+#include <msp/gl/extensions/msp_legacy_features.h>
#include "error.h"
#include "light.h"
#include "lighting.h"
void Lighting::bind() const
{
+ static Require _req(MSP_legacy_features);
if(lights.size()>LightUnit::get_n_units())
throw invalid_operation("Lighting::bind");