From f322aaec02e08150458b1df0a68d9ab0a95698f2 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 11 Jun 2016 05:49:53 +0900 Subject: [PATCH] mobile: Add a comment --- internal/ui/ui_mobile.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/ui/ui_mobile.go b/internal/ui/ui_mobile.go index 25d14399d..850f1a0b8 100644 --- a/internal/ui/ui_mobile.go +++ b/internal/ui/ui_mobile.go @@ -148,6 +148,10 @@ func (u *userInterface) actualScreenScale() int { return u.scale } +// TODO: Remove Resume() and do resuming in Update instead. +// In Update, we'd be able to detect GL context lost by glIsTexture or something, +// and we can do resuming when detecting it. + func Resume() error { chResume <- struct{}{} // Don't have to wait for resumeing done.