diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-07 12:01:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-07 12:15:23 +0300 |
commit | e786bcdc61657e4b2e2cae4bf6f44bb70a14587a (patch) | |
tree | 34d0e4e72d185e44ed56ab1ae81cbee29ca5e83b /src/render/mobileopenglgraphics.cpp | |
parent | f73819c8e075b0925381052590a5ac9ec6ac1b68 (diff) | |
download | manaplus-e786bcdc61657e4b2e2cae4bf6f44bb70a14587a.tar.gz manaplus-e786bcdc61657e4b2e2cae4bf6f44bb70a14587a.tar.bz2 manaplus-e786bcdc61657e4b2e2cae4bf6f44bb70a14587a.tar.xz manaplus-e786bcdc61657e4b2e2cae4bf6f44bb70a14587a.zip |
Add support for OpenGL extension GL_GREMEDY_frame_terminator.
It allow show to debugger where is frame termination.
Diffstat (limited to 'src/render/mobileopenglgraphics.cpp')
-rw-r--r-- | src/render/mobileopenglgraphics.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 0ad5bfeb7..ede89f115 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -31,6 +31,8 @@ #include "graphicsvertexes.h" #include "logger.h" +#include "render/mgl.h" + #include "resources/image.h" #include "resources/openglimagehelper.h" @@ -834,6 +836,10 @@ void MobileOpenGLGraphics::updateScreen() #else SDL_GL_SwapBuffers(); #endif +#ifdef DEBUG_OPENGL + if (mglFrameTerminator) + mglFrameTerminator(); +#endif // may be need clear? // glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); BLOCK_END("Graphics::updateScreen") |