From 1513348bf69e9cec0bcf912e91ecfc12ca77bc44 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 4 Jul 2020 16:26:16 +0200 Subject: [PATCH] app/internal/egl: don't call eglTerminate A single EGL display may be shared among several contexts. Don't eglTerminate a context display when destroying the context. Updates gio#144 Signed-off-by: Elias Naur --- app/internal/egl/egl.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/internal/egl/egl.go b/app/internal/egl/egl.go index f1d25957..3314cb55 100644 --- a/app/internal/egl/egl.go +++ b/app/internal/egl/egl.go @@ -70,8 +70,6 @@ func (c *Context) Release() { c.ReleaseSurface() if c.eglCtx != nil { eglDestroyContext(c.disp, c.eglCtx.ctx) - eglTerminate(c.disp) - eglReleaseThread() c.eglCtx = nil } c.disp = nilEGLDisplay