mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
app/internal/window: fix iOS context creation
NewBackend was recently changed to take a context, which must only be specified on GOOS=js. Fixes gio#189 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -57,7 +57,7 @@ func newContext(w *window) (*context, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *context) Backend() (backend.Device, error) {
|
func (c *context) Backend() (backend.Device, error) {
|
||||||
return gl.NewBackend(c.c)
|
return gl.NewBackend(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *context) Release() {
|
func (c *context) Release() {
|
||||||
|
|||||||
Reference in New Issue
Block a user