[vlc-commits] WGL: fix the module closing
Adrien Maglo
git at videolan.org
Thu Jun 9 13:23:22 CEST 2016
vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu Jun 9 12:11:59 2016 +0200| [885df27cac994e8f92dd70cb1af2a8017579db1b] | committer: Jean-Baptiste Kempf
WGL: fix the module closing
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=885df27cac994e8f92dd70cb1af2a8017579db1b
---
modules/video_output/win32/wgl.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/video_output/win32/wgl.c b/modules/video_output/win32/wgl.c
index 895e602..4edabb3 100644
--- a/modules/video_output/win32/wgl.c
+++ b/modules/video_output/win32/wgl.c
@@ -222,16 +222,13 @@ static void Close(vlc_object_t *object)
vlc_gl_t *gl = (vlc_gl_t *)object;
vout_display_sys_t *sys = gl->sys;
-#ifdef WGL_EXT_swap_control
- wglMakeCurrent(sys->hGLDC, sys->hGLRC);
- DestroyGPUAffinityDC(gl);
-#endif
-
if (sys->hGLRC)
wglDeleteContext(sys->hGLRC);
if (sys->hGLDC)
ReleaseDC(sys->hvideownd, sys->hGLDC);
+ DestroyGPUAffinityDC(gl);
+
free(sys);
}
More information about the vlc-commits
mailing list