mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-04 15:04:28 +01:00
opengl: Refactoring
This commit is contained in:
parent
a9249d6c65
commit
e99736d5a5
@ -78,13 +78,10 @@ func NewContext() (*Context, error) {
|
||||
}
|
||||
|
||||
func (c *Context) Loop() {
|
||||
for {
|
||||
select {
|
||||
case f := <-c.funcs:
|
||||
for f := range c.funcs {
|
||||
f()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Context) RunOnContextThread(f func()) {
|
||||
ch := make(chan struct{})
|
||||
|
Loading…
Reference in New Issue
Block a user