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/normalopenglgraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render/normalopenglgraphics.cpp') diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index f32003d49..81ed5ea71 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -1190,7 +1190,7 @@ void NormalOpenGLGraphics::updateScreen() SDL_GL_SwapBuffers(); #endif #ifdef DEBUG_OPENGL - if (mglFrameTerminator) + if (isGLNotNull(mglFrameTerminator)) mglFrameTerminator(); #endif // may be need clear? -- cgit v1.2.3-70-g09d2