Make the context not current before destroying it.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14090 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2004-12-02 23:55:08 +00:00
parent 2369473723
commit 302ddb0e51
1 changed files with 4 additions and 0 deletions

View File

@ -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