From bae6d62067a0c39cfcd93f7b130392d35ad0a1b1 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 21 Feb 2016 18:01:43 +0900 Subject: [PATCH] ui: Refactoring --- internal/graphics/opengl/context.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/graphics/opengl/context.go b/internal/graphics/opengl/context.go index 902f26669..251b4bcaf 100644 --- a/internal/graphics/opengl/context.go +++ b/internal/graphics/opengl/context.go @@ -75,10 +75,8 @@ var ( func Loop() { <-workerCreated for { - select { - case <-worker.WorkAvailable(): - worker.DoWork() - } + <-worker.WorkAvailable() + worker.DoWork() } }