uterm_video: disable egl context on destruction
Make sure to reset the egl-context before destroying it. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
1 parent
3c6d3ed468
commit
c7ec2f9dac
1 file changed
+1
@@ -755,6 +755,7 @@ static void video_destroy(struct uterm_video *video)
|
||||
|
||||
log_info("free drm device");
|
||||
ev_eloop_rm_fd(drm->efd);
|
||||
eglMakeCurrent(drm->disp, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
||||
eglDestroyContext(drm->disp, drm->ctx);
|
||||
eglTerminate(drm->disp);
|
||||
gbm_device_destroy(drm->gbm);
|
||||
|
||||
Reference in new issue
Block a user