forked from joejulian/gio
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user