]> git.tdb.fi Git - libs/gl.git/commitdiff
Define some GL enums in case they don't exist
authorMikko Rasa <tdb@tdb.fi>
Fri, 6 Jan 2017 10:33:39 +0000 (12:33 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 6 Jan 2017 10:33:39 +0000 (12:33 +0200)
source/extension.cpp
source/texture3d.cpp

index b65172fc691dc4b71e8ba2d4c5dc6e03eac9bfa2..51a84db695465038d0732df53f1d84c6e31cbb2c 100644 (file)
 #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 {
index 85b3f075f5096e47d92800ad734958189d0f0fa1..4cba3afccbfade39750ef6ec00cd890182142b58 100644 (file)
@@ -3,6 +3,7 @@
 #include <msp/gl/extensions/arb_direct_state_access.h>
 #include <msp/gl/extensions/arb_texture_storage.h>
 #include <msp/gl/extensions/ext_texture3d.h>
+#include <msp/gl/extensions/ext_texture_array.h>
 #include <msp/graphics/image.h>
 #include "bindable.h"
 #include "error.h"