From 3c5b7ba08e32c634bd7dacf07aa4fd0ba7088ac4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 16 Dec 2012 05:52:39 +0100 Subject: [PATCH] (Android) Call ALooper_pollOnce for command event queue once per frame - seems to be enough --- gfx/context/androidegl_ctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/context/androidegl_ctx.c b/gfx/context/androidegl_ctx.c index c5ac538a57..33d42ecd22 100644 --- a/gfx/context/androidegl_ctx.c +++ b/gfx/context/androidegl_ctx.c @@ -216,8 +216,8 @@ static void gfx_ctx_check_window(bool *quit, *quit = false; *resize = false; - - while((id = ALooper_pollOnce(0, NULL, NULL, NULL)) == ALOOPER_POLL_CALLBACK); + + id = ALooper_pollOnce(0, NULL, 0, NULL); if(id == LOOPER_ID_MAIN) {