summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-07 12:01:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-07 12:15:23 +0300
commite786bcdc61657e4b2e2cae4bf6f44bb70a14587a (patch)
tree34d0e4e72d185e44ed56ab1ae81cbee29ca5e83b /src/render/safeopenglgraphics.cpp
parentf73819c8e075b0925381052590a5ac9ec6ac1b68 (diff)
downloadmv-e786bcdc61657e4b2e2cae4bf6f44bb70a14587a.tar.gz
mv-e786bcdc61657e4b2e2cae4bf6f44bb70a14587a.tar.bz2
mv-e786bcdc61657e4b2e2cae4bf6f44bb70a14587a.tar.xz
mv-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/safeopenglgraphics.cpp')
-rw-r--r--src/render/safeopenglgraphics.cpp6
1 files changed, 6 insertions, 0 deletions
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"
@@ -421,6 +423,10 @@ void SafeOpenGLGraphics::updateScreen()
#else
SDL_GL_SwapBuffers();
#endif
+#ifdef DEBUG_OPENGL
+ if (mglFrameTerminator)
+ mglFrameTerminator();
+#endif
BLOCK_END("Graphics::updateScreen")
}