diff options
Diffstat (limited to 'libvo/gl_common.c')
-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 |