X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterial.cpp;h=a2814cff1ad6ccfdac3347e14f5a3ce130451e45;hp=feb97bfa14b9d66023d52487803d7b15df2ccd2f;hb=d713e5391dc5d85759c7aab36f6df7a85c3d8eff;hpb=99ffd618b531395fe369b33fb029855d57547365 diff --git a/source/material.cpp b/source/material.cpp index feb97bfa..a2814cff 100644 --- a/source/material.cpp +++ b/source/material.cpp @@ -1,3 +1,4 @@ +#include #include "gl.h" #include "material.h" #include "resources.h" @@ -75,6 +76,8 @@ void Material::set_reflectivity(float r) void Material::bind() const { + static Require _req(MSP_legacy_features); + if(set_current(this)) update_parameter(-1); }