diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-25 16:55:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-25 16:55:35 +0300 |
commit | 4821f538a888370eb80ec28f9bab269a4427a63c (patch) | |
tree | 8e78fcb52df8b10cdd4cd2ed3859ad29c4c4c711 /src/render/opengl/mglemu.cpp | |
parent | 51b81830c032fe255254a269b85679a89aa3728d (diff) | |
download | plus-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.cpp | 3 |
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) |