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 <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-07-04 16:26:16 +02:00
parent 8bd0e85f2e
commit 1513348bf6
-2
View File
@@ -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