Mercurial > mplayer.hg
comparison libvo/gl_common.c @ 14089:00283cb37fd0
Make the context not current before destroying it.
author | reimar |
---|---|
date | Thu, 02 Dec 2004 23:55:08 +0000 |
parents | c4033dcb986f |
children | f0c1ee83b216 |
comparison
equal
deleted
inserted
replaced
14088:9b5cfd109fab | 14089:00283cb37fd0 |
---|---|
269 void releaseGlContext(XVisualInfo **vinfo, GLXContext *context) { | 269 void releaseGlContext(XVisualInfo **vinfo, GLXContext *context) { |
270 if (*vinfo) | 270 if (*vinfo) |
271 XFree(*vinfo); | 271 XFree(*vinfo); |
272 *vinfo = NULL; | 272 *vinfo = NULL; |
273 if (*context) | 273 if (*context) |
274 { | |
275 glFinish(); | |
276 glXMakeCurrent(mDisplay, None, NULL); | |
274 glXDestroyContext(mDisplay, *context); | 277 glXDestroyContext(mDisplay, *context); |
278 } | |
275 *context = 0; | 279 *context = 0; |
276 } | 280 } |
277 #endif | 281 #endif |
278 | 282 |