summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-21 20:29:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-21 20:29:35 +0300
commit2da60f580cf07d16c0c52d451641bcb0e5698923 (patch)
tree359bdc950646eba1fd81f2fb9635d1c2ee6645f0 /src/render
parentbcbf32f0ca331ea766148a534a2551b2e70fcc46 (diff)
downloadmv-2da60f580cf07d16c0c52d451641bcb0e5698923.tar.gz
mv-2da60f580cf07d16c0c52d451641bcb0e5698923.tar.bz2
mv-2da60f580cf07d16c0c52d451641bcb0e5698923.tar.xz
mv-2da60f580cf07d16c0c52d451641bcb0e5698923.zip
add Support for OpenGL extension GL_ARB_texture_storage.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/mgl.cpp1
-rw-r--r--src/render/mgl.h1
-rw-r--r--src/render/mgltypes.h2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/render/mgl.cpp b/src/render/mgl.cpp
index 55bdc1b84..65064ae84 100644
--- a/src/render/mgl.cpp
+++ b/src/render/mgl.cpp
@@ -100,6 +100,7 @@ defName(glCopyImageSubData);
defName(glPushDebugGroup);
defName(glPopDebugGroup);
defName(glObjectLabel);
+defName(glTexStorage2D);
#ifdef WIN32
defName(wglGetExtensionsString);
diff --git a/src/render/mgl.h b/src/render/mgl.h
index e3271f71b..32d27515f 100644
--- a/src/render/mgl.h
+++ b/src/render/mgl.h
@@ -103,6 +103,7 @@ defNameE(glCopyImageSubData);
defNameE(glPushDebugGroup);
defNameE(glPopDebugGroup);
defNameE(glObjectLabel);
+defNameE(glTexStorage2D);
#ifdef WIN32
defNameE(wglGetExtensionsString);
diff --git a/src/render/mgltypes.h b/src/render/mgltypes.h
index 9881ea312..f8f26c978 100644
--- a/src/render/mgltypes.h
+++ b/src/render/mgltypes.h
@@ -156,6 +156,8 @@ typedef void (APIENTRY *glPushDebugGroup_t) (GLenum source, GLuint id,
typedef void (APIENTRY *glPopDebugGroup_t) (void);
typedef void (APIENTRY *glObjectLabel_t) (GLenum identifier, GLuint name,
GLsizei length, const GLchar *label);
+typedef void (APIENTRY *glTexStorage2D_t) (GLenum target, GLsizei levels,
+ GLenum internalformat, GLsizei width, GLsizei height);
// callback
typedef void (APIENTRY *GLDEBUGPROC_t) (GLenum source, GLenum type, GLuint id,