summaryrefslogtreecommitdiff
path: root/src/mgl.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-14 01:09:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-14 01:57:57 +0300
commitc5fd70049a0ebdc14e49af3e5215521085a44b46 (patch)
tree6654ed70f48e954d39926ff3a14a26d588479cab /src/mgl.h
parentd589fe649959239c268b1affddee8a453f96e969 (diff)
downloadmv-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.gz
mv-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.bz2
mv-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.xz
mv-c5fd70049a0ebdc14e49af3e5215521085a44b46.zip
Fow OpenGL >= 3.0 check extensions in modern way.
Diffstat (limited to 'src/mgl.h')
-rw-r--r--src/mgl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mgl.h b/src/mgl.h
index ae2f8583c..8e7002d82 100644
--- a/src/mgl.h
+++ b/src/mgl.h
@@ -26,6 +26,7 @@
#include <SDL_opengl.h>
#include <GL/glext.h>
+#define GL_NUM_EXTENSIONS 0x821D
#define GL_DEPTH_ATTACHMENT 0x8D00
#define GL_COLOR_ATTACHMENT0 0x8CE0
#define GL_FRAMEBUFFER 0x8D40
@@ -47,6 +48,7 @@ typedef void (APIENTRY *glFramebufferRenderbuffer_t)(GLenum target,
GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
typedef void (APIENTRY *glDeleteFramebuffers_t) (GLsizei, const GLuint *);
typedef void (APIENTRY *glDeleteRenderbuffers_t) (GLsizei, const GLuint *);
+typedef const GLubyte *(APIENTRY *glGetStringi_t) (GLenum, GLuint);
defNameE(glGenRenderbuffers);
defNameE(glBindRenderbuffer);
@@ -57,5 +59,6 @@ defNameE(glFramebufferTexture2D);
defNameE(glFramebufferRenderbuffer);
defNameE(glDeleteFramebuffers);
defNameE(glDeleteRenderbuffers);
+defNameE(glGetStringi);
#endif