From ae8c7b8d7fe3a0cd539c313cd7e251b5b45305aa Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 24 Dec 2012 19:06:28 +0100 Subject: [PATCH] (Android) Orientation change works again - crashes after a finite number of times changing orientation though --- gfx/context/androidegl_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/context/androidegl_ctx.c b/gfx/context/androidegl_ctx.c index ef628b0bfa..645bfaf1b7 100644 --- a/gfx/context/androidegl_ctx.c +++ b/gfx/context/androidegl_ctx.c @@ -241,7 +241,7 @@ static void gfx_ctx_check_window(bool *quit, int32_t new_orient = AConfiguration_getOrientation(g_android.app->config); - if (new_orient != g_android.last_orient) + if (new_orient != g_android.last_orient && g_android.window_ready) { *resize = true; g_android.last_orient = new_orient;