From e3ef0540a33b438121ca719fc7163bc05d46f7c6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 23 Jul 2016 02:09:48 +0900 Subject: [PATCH] opengl: Bug fix: Remove infinite for loop and improve FPS on iOS --- internal/graphics/opengl/context_mobile.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/graphics/opengl/context_mobile.go b/internal/graphics/opengl/context_mobile.go index 0ba15a5ac..a92fb562a 100644 --- a/internal/graphics/opengl/context_mobile.go +++ b/internal/graphics/opengl/context_mobile.go @@ -83,12 +83,8 @@ loop: return err case <-c.worker.WorkAvailable(): c.worker.DoWork() - default: - select { - case <-chDone: - break loop - default: - } + case <-chDone: + break loop } } return nil