minor change
This commit is contained in:
parent
6f57d4035a
commit
9e29fde8cc
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue