ui: fix macOS build

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-03-31 11:00:26 +02:00
parent 76b10751a6
commit ca5204fcb8
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -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
View File
@@ -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,
})
}