From e786bcdc61657e4b2e2cae4bf6f44bb70a14587a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 7 Apr 2014 12:01:47 +0300 Subject: Add support for OpenGL extension GL_GREMEDY_frame_terminator. It allow show to debugger where is frame termination. --- src/render/mobileopenglgraphics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/render/mobileopenglgraphics.cpp') 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") -- cgit v1.2.3-60-g2f50