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.
|
// 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue