summaryrefslogtreecommitdiff
path: root/src/utils/glxhelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/glxhelper.cpp')
-rw-r--r--src/utils/glxhelper.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/utils/glxhelper.cpp b/src/utils/glxhelper.cpp
index e27124325..240e4b8d5 100644
--- a/src/utils/glxhelper.cpp
+++ b/src/utils/glxhelper.cpp
@@ -24,6 +24,7 @@
#include "logger.h"
+#include "render/mglcheck.h"
#include "render/mglx.h"
#include "render/mglxtypes.h"
@@ -46,9 +47,9 @@ void *GlxHelper::createContext(const unsigned long window,
XSync(display, false);
int (*handler) (Display *, XErrorEvent *) = XSetErrorHandler(ErrorHandler);
void *context = mglXGetCurrentContext();
- if (!mglXGetCurrentContext
- || !mglXCreateContextAttribs
- || !mglXChooseFBConfig)
+ if (isGLNull(mglXGetCurrentContext)
+ || isGLNull(mglXCreateContextAttribs)
+ || isGLNull(mglXChooseFBConfig))
{
logger->log("Cant change context, functions in driver "
"not implimented");