summaryrefslogtreecommitdiff
path: root/src/render/opengl/mglemu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-25 16:55:35 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-25 16:55:35 +0300
commit4821f538a888370eb80ec28f9bab269a4427a63c (patch)
tree8e78fcb52df8b10cdd4cd2ed3859ad29c4c4c711 /src/render/opengl/mglemu.cpp
parent51b81830c032fe255254a269b85679a89aa3728d (diff)
downloadplus-4821f538a888370eb80ec28f9bab269a4427a63c.tar.gz
plus-4821f538a888370eb80ec28f9bab269a4427a63c.tar.bz2
plus-4821f538a888370eb80ec28f9bab269a4427a63c.tar.xz
plus-4821f538a888370eb80ec28f9bab269a4427a63c.zip
Report into log OpenGL errors if enabled configure option --enable-openglerrors.
Diffstat (limited to 'src/render/opengl/mglemu.cpp')
-rw-r--r--src/render/opengl/mglemu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/opengl/mglemu.cpp b/src/render/opengl/mglemu.cpp
index d0a4d0916..eb5949f0b 100644
--- a/src/render/opengl/mglemu.cpp
+++ b/src/render/opengl/mglemu.cpp
@@ -38,6 +38,9 @@ void APIENTRY emuglTextureSubImage2DEXT(GLuint texture, GLenum target,
xoffset, yoffset,
width, height,
format, type, pixels);
+#ifdef OPENGLERRORS
+ graphicsManager.logError();
+#endif // OPENGLERRORS
}
void APIENTRY emuglActiveTexture(GLenum texture A_UNUSED)