forked from joejulian/gio
app,app/internal/wm: release OpenGL context after use
Otherwise, making a context current on another thread may result in an EGL_BAD_ACCESS error. Fixes gio#248 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -62,6 +62,8 @@ func (c *context) MakeCurrent() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *context) ReleaseCurrent() {}
|
||||
|
||||
func (w *window) NewContext() (Context, error) {
|
||||
return newContext(w)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user