opengl: Bug fix: Remove infinite for loop and improve FPS on iOS

This commit is contained in:
Hajime Hoshi 2016-07-23 02:09:48 +09:00
parent 77a1117165
commit e3ef0540a3

View File

@ -83,12 +83,8 @@ loop:
return err return err
case <-c.worker.WorkAvailable(): case <-c.worker.WorkAvailable():
c.worker.DoWork() c.worker.DoWork()
default: case <-chDone:
select { break loop
case <-chDone:
break loop
default:
}
} }
} }
return nil return nil