minor change

This commit is contained in:
faiface 2016-12-15 01:03:18 +01:00
parent 6f57d4035a
commit 9e29fde8cc
1 changed files with 2 additions and 2 deletions

View File

@ -65,10 +65,10 @@ func DoNoBlock(f func()) {
// //
// All OpenGL calls must be done in the dedicated thread. // All OpenGL calls must be done in the dedicated thread.
func Do(f func()) { func Do(f func()) {
done := make(chan bool) done := make(chan struct{})
callQueue <- func() { callQueue <- func() {
f() f()
done <- true close(done)
} }
<-done <-done
} }