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:
Elias Naur
2019-11-29 19:55:52 +01:00
parent 5fa3dbc70d
commit f25f647a66
11 changed files with 21 additions and 26 deletions
+1 -2
View File
@@ -8,7 +8,6 @@ import (
"unsafe"
"gioui.org/app/internal/egl"
"gioui.org/app/internal/gl"
)
type x11Context struct {
@@ -16,7 +15,7 @@ type x11Context struct {
*egl.Context
}
func (w *x11Window) NewContext() (gl.Context, error) {
func (w *x11Window) NewContext() (Context, error) {
disp := egl.NativeDisplayType(unsafe.Pointer(w.display()))
ctx, err := egl.NewContext(disp)
if err != nil {