diff options
author | wm4 <wm4@nowhere> | 2016-05-05 13:38:39 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-05 13:46:18 +0200 |
commit | 605dd928d30445610544f919f5b577f4acb79114 (patch) | |
tree | bab2d201adb8bbcfc81c477c5039ce1a9e6e052b /video | |
parent | f56555b5144069d0a8ac81d407abfa0c6be30c2e (diff) | |
download | mpv-605dd928d30445610544f919f5b577f4acb79114.tar.bz2 mpv-605dd928d30445610544f919f5b577f4acb79114.tar.xz |
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.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/context_angle.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |