mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
app/internal/window,app/internal/gl: move gl.Context to package window
Package gl now only defines opengl types and functions. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-2
@@ -8,7 +8,6 @@ import (
|
||||
"image"
|
||||
"time"
|
||||
|
||||
"gioui.org/app/internal/gl"
|
||||
"gioui.org/app/internal/input"
|
||||
"gioui.org/app/internal/window"
|
||||
"gioui.org/io/event"
|
||||
@@ -285,7 +284,7 @@ func (w *Window) run(opts *window.Options) {
|
||||
w.loop = nil
|
||||
}
|
||||
} else {
|
||||
var ctx gl.Context
|
||||
var ctx window.Context
|
||||
ctx, err = w.driver.NewContext()
|
||||
if err == nil {
|
||||
w.loop, err = newLoop(ctx)
|
||||
|
||||
Reference in New Issue
Block a user