From d9be27bba8941260500066cdd43ebb016356bc67 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 12 Jul 2014 21:35:44 +0300 Subject: Add macro for checking OpenGL function is it null or not null. --- src/render/safeopenglgraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render/safeopenglgraphics.cpp') 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") -- cgit v1.2.3-70-g09d2