summaryrefslogtreecommitdiff
path: root/src/render/normalopenglgraphics.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/normalopenglgraphics.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/normalopenglgraphics.cpp')
-rw-r--r--src/render/normalopenglgraphics.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp
index 72fbd8a99..8f3659936 100644
--- a/src/render/normalopenglgraphics.cpp
+++ b/src/render/normalopenglgraphics.cpp
@@ -30,6 +30,8 @@
#include "graphicsvertexes.h"
#include "logger.h"
+#include "render/mgl.h"
+
#include "resources/image.h"
#include "resources/openglimagehelper.h"
@@ -1095,6 +1097,10 @@ void NormalOpenGLGraphics::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")