summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-07 18:27:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-07 18:27:44 +0300
commit6adc2a5654e55f4a0e817cd5731753cdc3bc5ff4 (patch)
tree61a9a659578bfc215006f7b137129b7818aa4098 /src
parentb60aef9dc9977b54a1b27431890e06558a2b6784 (diff)
downloadmanaverse-6adc2a5654e55f4a0e817cd5731753cdc3bc5ff4.tar.gz
manaverse-6adc2a5654e55f4a0e817cd5731753cdc3bc5ff4.tar.bz2
manaverse-6adc2a5654e55f4a0e817cd5731753cdc3bc5ff4.tar.xz
manaverse-6adc2a5654e55f4a0e817cd5731753cdc3bc5ff4.zip
add some more OpenGL functions.
Diffstat (limited to 'src')
-rw-r--r--src/graphicsmanager.cpp1
-rw-r--r--src/render/mgl.cpp1
-rw-r--r--src/render/mgl.h1
-rw-r--r--src/render/mgltypes.h1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index e81f54cbd..870f52bb9 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -812,6 +812,7 @@ void GraphicsManager::initOpenGLFunctions()
assignFunction(glFramebufferRenderbuffer, "glFramebufferRenderbuffer");
assignFunction(glDeleteFramebuffers, "glDeleteFramebuffers");
assignFunction(glDeleteRenderbuffers, "glDeleteRenderbuffers");
+ assignFunction(glCheckFramebufferStatus, "glCheckFramebufferStatus");
}
else if (supportExtension("GL_EXT_framebuffer_object"))
{ // old frame buffer extension
diff --git a/src/render/mgl.cpp b/src/render/mgl.cpp
index 21e2dd274..47d087325 100644
--- a/src/render/mgl.cpp
+++ b/src/render/mgl.cpp
@@ -82,6 +82,7 @@ defName(glUniform1f);
defName(glUniform2f);
defName(glUniform3f);
defName(glUniform4f);
+defName(glCheckFramebufferStatus);
#ifdef WIN32
defName(wglGetExtensionsString);
diff --git a/src/render/mgl.h b/src/render/mgl.h
index 2213458bb..02122f88c 100644
--- a/src/render/mgl.h
+++ b/src/render/mgl.h
@@ -85,6 +85,7 @@ defNameE(glUniform1f);
defNameE(glUniform2f);
defNameE(glUniform3f);
defNameE(glUniform4f);
+defNameE(glCheckFramebufferStatus);
#ifdef WIN32
defNameE(wglGetExtensionsString);
diff --git a/src/render/mgltypes.h b/src/render/mgltypes.h
index 8e5cbe40d..65fd8a978 100644
--- a/src/render/mgltypes.h
+++ b/src/render/mgltypes.h
@@ -120,6 +120,7 @@ typedef void (APIENTRY *glUniform3f_t) (GLint location,
GLfloat v0, GLfloat v1, GLfloat v2);
typedef void (APIENTRY *glUniform4f_t) (GLint location,
GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef GLenum (APIENTRY *glCheckFramebufferStatus_t) (GLenum target);
// callback
typedef void (APIENTRY *GLDEBUGPROC_t) (GLenum source, GLenum type, GLuint id,