From f484e7ef6b7e4507da99cd116c78a28b13c5ef91 Mon Sep 17 00:00:00 2001 From: Lucas Baudin Date: Thu, 25 Feb 2016 23:13:33 +0100 Subject: [PATCH] [android] More debug print for the android irrlicht device --- lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp index 8b3c2e040..42f238d14 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp @@ -74,6 +74,8 @@ CIrrDeviceAndroid::CIrrDeviceAndroid(const SIrrlichtCreationParameters& param) // Android OS. os::Printer::log("Waiting for Android activity window to be created.", ELL_DEBUG); + if(Android->window == NULL) { + do { while( (ident = ALooper_pollAll( 0, NULL, &events,(void**)&source)) >= 0 ) @@ -86,6 +88,8 @@ CIrrDeviceAndroid::CIrrDeviceAndroid(const SIrrlichtCreationParameters& param) } } while( IsReady == false ); + } + os::Printer::log("Done", ELL_DEBUG); assert( Android->window );