From: Mikko Rasa Date: Sat, 13 Aug 2016 15:30:27 +0000 (+0300) Subject: Require legacy features when binding plain clip planes X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e88f6bf62f172c29727525ecd0517300e8e1cda5;p=libs%2Fgl.git Require legacy features when binding plain clip planes --- diff --git a/source/clipplane.cpp b/source/clipplane.cpp index 04bd6acf..e0b425a4 100644 --- a/source/clipplane.cpp +++ b/source/clipplane.cpp @@ -1,3 +1,4 @@ +#include #include #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)) {