summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-02 23:55:08 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-02 23:55:08 +0000
commit302ddb0e5178f9aa544a9e0d117e78c20a998f81 (patch)
tree9d6a6766638e6dc48d70049d82a60bd4f35e1e63 /libvo
parent23694737233a808b6986d4eb2eb11113ae1b39f4 (diff)
downloadmpv-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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/gl_common.c4
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