Commit 885df27c authored by Adrien Maglo's avatar Adrien Maglo Committed by Jean-Baptiste Kempf

WGL: fix the module closing

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 33fb5a37
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment