From 9e29fde8ccae80196a1fb522037570f75c599722 Mon Sep 17 00:00:00 2001 From: faiface <faiface@ksp.sk> Date: Thu, 15 Dec 2016 01:03:18 +0100 Subject: [PATCH] minor change --- pixelgl/thread.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixelgl/thread.go b/pixelgl/thread.go index 818e95b..d250b50 100644 --- a/pixelgl/thread.go +++ b/pixelgl/thread.go @@ -65,10 +65,10 @@ func DoNoBlock(f func()) { // // All OpenGL calls must be done in the dedicated thread. func Do(f func()) { - done := make(chan bool) + done := make(chan struct{}) callQueue <- func() { f() - done <- true + close(done) } <-done } -- GitLab