mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
@@ -57,6 +57,7 @@ CVDisplayLinkRef displayLink;
|
||||
CVDisplayLinkSetCurrentCGDisplay(displayLink, dispID);
|
||||
}
|
||||
- (void)prepareOpenGL {
|
||||
[super prepareOpenGL];
|
||||
// Bind a default VBA to emulate OpenGL ES 2.
|
||||
GLuint defVBA;
|
||||
glGenVertexArrays(1, &defVBA);
|
||||
|
||||
+2
-2
@@ -19,10 +19,10 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"gioui.org/ui"
|
||||
"gioui.org/ui/f32"
|
||||
"gioui.org/ui/key"
|
||||
"gioui.org/ui/pointer"
|
||||
"gioui.org/ui"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -140,7 +140,7 @@ func (w *window) draw(sync bool) {
|
||||
X: width,
|
||||
Y: height,
|
||||
},
|
||||
Config: *cfg,
|
||||
Config: &cfg,
|
||||
sync: sync,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user