diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-02 19:33:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-02 19:33:01 +0300 |
commit | eda234f5e156d376541044b351fd2e1e766700a3 (patch) | |
tree | 56ef425beb88fe84c280dea3a3ddeef676553589 /src/utils/glxhelper.cpp | |
parent | 5ce62dae5b3848833765a19296ffd9fd7e9721d8 (diff) | |
download | manaverse-eda234f5e156d376541044b351fd2e1e766700a3.tar.gz manaverse-eda234f5e156d376541044b351fd2e1e766700a3.tar.bz2 manaverse-eda234f5e156d376541044b351fd2e1e766700a3.tar.xz manaverse-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.cpp | 9 |
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) |