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.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/utils/glxhelper.cpp b/src/utils/glxhelper.cpp
index 1fedeb9c6..1624b6309 100644
--- a/src/utils/glxhelper.cpp
+++ b/src/utils/glxhelper.cpp
@@ -36,7 +36,7 @@ static int ErrorHandler(Display *d A_UNUSED, XErrorEvent *e A_UNUSED)
return 0;
}
-void *GlxHelper::createContext(unsigned int window,
+void *GlxHelper::createContext(const unsigned int window,
void *const display0,
const int major,
const int minor)
@@ -117,4 +117,11 @@ void *GlxHelper::createContext(unsigned int window,
return context2;
}
+bool GlxHelper::makeCurrent(const unsigned int window,
+ void *const display,
+ void *const context)
+{
+ return mglXMakeCurrent(static_cast<Display*>(display), window, context);
+}
+
#endif // defined(USE_OPENGL) && defined(USE_X11)