X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmatrix.cpp;h=b05d4bbc8ab6ff3de95e4f9cb6a35dacea80285d;hb=9dc2c20e8c7ac91d932b12492591b65786e24b0f;hp=4bf550aa090ffc44c2734992cd064e578ebb460a;hpb=e0a2e7643f490bee69dfada6b029c8e02e6ede07;p=libs%2Fgl.git diff --git a/source/matrix.cpp b/source/matrix.cpp index 4bf550aa..b05d4bbc 100644 --- a/source/matrix.cpp +++ b/source/matrix.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "error.h" #include "matrix.h" @@ -195,6 +196,8 @@ void MatrixStack::update() if(!mode) return; + static Require _req(MSP_legacy_features); + if(mode!=current_mode) { glMatrixMode(mode);