From 3e17c84968553e58cb09d397cafaead82e51d478 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 6 Jan 2017 12:33:39 +0200 Subject: [PATCH] Define some GL enums in case they don't exist --- source/extension.cpp | 9 +++++++++ source/texture3d.cpp | 1 + 2 files changed, 10 insertions(+) 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" -- 2.43.0