(Android) Orientation change works again - crashes after a finite

number of times changing orientation though
This commit is contained in:
twinaphex 2012-12-24 19:06:28 +01:00
parent e8a57f21cd
commit ae8c7b8d7f

View File

@ -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;