diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-12-02 23:55:08 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-12-02 23:55:08 +0000 |
commit | 302ddb0e5178f9aa544a9e0d117e78c20a998f81 (patch) | |
tree | 9d6a6766638e6dc48d70049d82a60bd4f35e1e63 | |
parent | 23694737233a808b6986d4eb2eb11113ae1b39f4 (diff) | |
download | mpv-302ddb0e5178f9aa544a9e0d117e78c20a998f81.tar.bz2 mpv-302ddb0e5178f9aa544a9e0d117e78c20a998f81.tar.xz |
Make the context not current before destroying it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14090 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/gl_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c index 3526195618..884d6e8072 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -271,7 +271,11 @@ void releaseGlContext(XVisualInfo **vinfo, GLXContext *context) { XFree(*vinfo); *vinfo = NULL; if (*context) + { + glFinish(); + glXMakeCurrent(mDisplay, None, NULL); glXDestroyContext(mDisplay, *context); + } *context = 0; } #endif |