summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-07 21:57:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-07 21:57:33 +0300
commitcf24722d84c7e4fd1d32365d720c291a48b9f9c8 (patch)
tree05f2bd60e8199d5fec00507f4fef95c51dab0873 /src/resources
parente786bcdc61657e4b2e2cae4bf6f44bb70a14587a (diff)
downloadmanaverse-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.tar.gz
manaverse-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.tar.bz2
manaverse-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.tar.xz
manaverse-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.zip
Add support for OpenGL extension GL_EXT_debug_label.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/openglimagehelper.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp
index 262d839f7..ae67904f9 100644
--- a/src/resources/openglimagehelper.cpp
+++ b/src/resources/openglimagehelper.cpp
@@ -244,6 +244,14 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage,
tmpImage->w, tmpImage->h,
0, GL_RGBA, GL_UNSIGNED_BYTE, tmpImage->pixels);
+#ifdef DEBUG_OPENGL
+ if (mglLabelObject)
+ {
+ const char *const text = "image text";
+// mglLabelObject(GL_TEXTURE, texture, strlen(text), text);
+ }
+#endif
+
/*
GLint compressed;
glGetTexLevelParameteriv(mTextureType, 0,