mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
@@ -57,6 +57,7 @@ CVDisplayLinkRef displayLink;
|
|||||||
CVDisplayLinkSetCurrentCGDisplay(displayLink, dispID);
|
CVDisplayLinkSetCurrentCGDisplay(displayLink, dispID);
|
||||||
}
|
}
|
||||||
- (void)prepareOpenGL {
|
- (void)prepareOpenGL {
|
||||||
|
[super prepareOpenGL];
|
||||||
// Bind a default VBA to emulate OpenGL ES 2.
|
// Bind a default VBA to emulate OpenGL ES 2.
|
||||||
GLuint defVBA;
|
GLuint defVBA;
|
||||||
glGenVertexArrays(1, &defVBA);
|
glGenVertexArrays(1, &defVBA);
|
||||||
|
|||||||
+2
-2
@@ -19,10 +19,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
"gioui.org/ui"
|
||||||
"gioui.org/ui/f32"
|
"gioui.org/ui/f32"
|
||||||
"gioui.org/ui/key"
|
"gioui.org/ui/key"
|
||||||
"gioui.org/ui/pointer"
|
"gioui.org/ui/pointer"
|
||||||
"gioui.org/ui"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -140,7 +140,7 @@ func (w *window) draw(sync bool) {
|
|||||||
X: width,
|
X: width,
|
||||||
Y: height,
|
Y: height,
|
||||||
},
|
},
|
||||||
Config: *cfg,
|
Config: &cfg,
|
||||||
sync: sync,
|
sync: sync,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
module gioui.org/ui
|
module gioui.org/ui
|
||||||
|
|
||||||
|
go 1.12
|
||||||
|
|
||||||
require (
|
require (
|
||||||
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f
|
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f
|
||||||
golang.org/x/sys v0.0.0-20190329044733-9eb1bfa1ce65
|
golang.org/x/sys v0.0.0-20190329044733-9eb1bfa1ce65
|
||||||
)
|
)
|
||||||
|
|
||||||
go 1.12
|
|
||||||
|
|||||||
Reference in New Issue
Block a user