]> git.tdb.fi Git - libs/gl.git/commitdiff
Require legacy features when binding plain clip planes
authorMikko Rasa <tdb@tdb.fi>
Sat, 13 Aug 2016 15:30:27 +0000 (18:30 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 13 Aug 2016 15:30:27 +0000 (18:30 +0300)
source/clipplane.cpp

index 04bd6acfa817233a7c9ab291fb8f2a2cd64f73af..e0b425a4c221ff107a29b2527e2e1a544727fe89 100644 (file)
@@ -1,3 +1,4 @@
+#include <msp/gl/extensions/msp_legacy_features.h>
 #include <msp/strings/format.h>
 #include "clipplane.h"
 #include "clipunit.h"
@@ -49,6 +50,8 @@ void ClipPlane::update_shader_data(ProgramData &shdata, const Matrix &view_inver
 
 void ClipPlane::bind_to(unsigned i) const
 {
+       Require _req(MSP_legacy_features);
+
        ClipUnit &unit = ClipUnit::get_unit(i);
        if(unit.set_plane(this))
        {