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/safeopenglgraphics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/render/safeopenglgraphics.cpp') diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp index a191142b5..177cfecb5 100644 --- a/src/render/safeopenglgraphics.cpp +++ b/src/render/safeopenglgraphics.cpp @@ -28,6 +28,8 @@ #include "configuration.h" #include "graphicsmanager.h" +#include "render/mgl.h" + #include "resources/image.h" #include "resources/openglimagehelper.h" @@ -420,6 +422,10 @@ void SafeOpenGLGraphics::updateScreen() SDL_GL_SwapWindow(mWindow); #else SDL_GL_SwapBuffers(); +#endif +#ifdef DEBUG_OPENGL + if (mglFrameTerminator) + mglFrameTerminator(); #endif BLOCK_END("Graphics::updateScreen") } -- cgit v1.2.3-70-g09d2