summaryrefslogtreecommitdiff
path: root/src/utils/glxhelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-02 19:33:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-02 19:33:01 +0300
commiteda234f5e156d376541044b351fd2e1e766700a3 (patch)
tree56ef425beb88fe84c280dea3a3ddeef676553589 /src/utils/glxhelper.cpp
parent5ce62dae5b3848833765a19296ffd9fd7e9721d8 (diff)
downloadplus-eda234f5e156d376541044b351fd2e1e766700a3.tar.gz
plus-eda234f5e156d376541044b351fd2e1e766700a3.tar.bz2
plus-eda234f5e156d376541044b351fd2e1e766700a3.tar.xz
plus-eda234f5e156d376541044b351fd2e1e766700a3.zip
Fix resize in modernopengl with own context in SDL1.2 build.
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)