summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-12 21:35:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-12 21:35:44 +0300
commitd9be27bba8941260500066cdd43ebb016356bc67 (patch)
tree884fa01ee78e6ed9a1c5ea526b1b5cd9e37df24b /src/render/safeopenglgraphics.cpp
parent18b2da68d0ae157778bab38d6a90f71e5bb95da2 (diff)
downloadplus-d9be27bba8941260500066cdd43ebb016356bc67.tar.gz
plus-d9be27bba8941260500066cdd43ebb016356bc67.tar.bz2
plus-d9be27bba8941260500066cdd43ebb016356bc67.tar.xz
plus-d9be27bba8941260500066cdd43ebb016356bc67.zip
Add macro for checking OpenGL function is it null or not null.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r--src/render/safeopenglgraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp
index 1f381b2b9..c40637f68 100644
--- a/src/render/safeopenglgraphics.cpp
+++ b/src/render/safeopenglgraphics.cpp
@@ -464,7 +464,7 @@ void SafeOpenGLGraphics::updateScreen()
SDL_GL_SwapBuffers();
#endif
#ifdef DEBUG_OPENGL
- if (mglFrameTerminator)
+ if (isGLNotNull(mglFrameTerminator))
mglFrameTerminator();
#endif
BLOCK_END("Graphics::updateScreen")