From e88f6bf62f172c29727525ecd0517300e8e1cda5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 13 Aug 2016 18:30:27 +0300 Subject: [PATCH] Require legacy features when binding plain clip planes --- source/clipplane.cpp | 3 +++ 1 file changed, 3 insertions(+) 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)) { -- 2.45.2