example,cmd: bump gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-06-09 23:03:36 +02:00
parent d1ea9339d5
commit 81a84d874b
11 changed files with 19 additions and 13 deletions
+7 -1
View File
@@ -92,7 +92,13 @@ func main() {
}
width, height := window.GetSize()
sz := image.Point{X: width, Y: height}
gtx := layout.NewContext(&ops, &queue, &glfwConfig{scale}, sz)
ops.Reset()
gtx := layout.Context{
Ops: &ops,
Queue: &queue,
Config: &glfwConfig{scale},
Constraints: layout.Exact(sz),
}
draw(gtx, th)
gpu.Collect(sz, gtx.Ops)
gpu.BeginFrame()