From 605dd928d30445610544f919f5b577f4acb79114 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 5 May 2016 13:38:39 +0200 Subject: vo_opengl: angle: call eglTerminate() I hope that this does what we expect it does: destroy the EGLDisplay specific to our HDC. (Some implementations will terminate all EGL contexts in the whole process.) eglReleaseThread() merely calls eglMakeCurrent(0, 0, 0, 0), which is not enough. This commit also fixes the problem fixed with the previous commit, but I think both changes are needed to make our API usage clean. --- video/out/opengl/context_angle.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') diff --git a/video/out/opengl/context_angle.c b/video/out/opengl/context_angle.c index b922ce8f24..cb48343d6f 100644 --- a/video/out/opengl/context_angle.c +++ b/video/out/opengl/context_angle.c @@ -39,6 +39,8 @@ static void angle_uninit(MPGLContext *ctx) eglDestroyContext(p->egl_display, p->egl_context); } p->egl_context = EGL_NO_CONTEXT; + if (p->egl_display) + eglTerminate(p->egl_display); vo_w32_uninit(ctx->vo); } -- cgit v1.2.3