mirror of https://github.com/mpv-player/mpv
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:
parent
2369473723
commit
302ddb0e51
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue