From: Mikko Rasa Date: Fri, 6 Jan 2017 10:33:39 +0000 (+0200) Subject: Define some GL enums in case they don't exist X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=3e17c84968553e58cb09d397cafaead82e51d478;p=libs%2Fgl.git Define some GL enums in case they don't exist --- diff --git a/source/extension.cpp b/source/extension.cpp index b65172fc..51a84db6 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -12,6 +12,15 @@ #include "extension.h" #include "gl.h" +#ifndef GL_VERSION_3_0 +#define GL_NUM_EXTENSIONS 0x821D +#endif + +#ifndef GL_VERSION_3_2 +#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 +#define GL_CONTEXT_PROFILE_MASK 0x9126 +#endif + using namespace std; namespace Msp { diff --git a/source/texture3d.cpp b/source/texture3d.cpp index 85b3f075..4cba3afc 100644 --- a/source/texture3d.cpp +++ b/source/texture3d.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include "bindable.h" #include "error.h"