Removed debugging crash in video code, fixed OpenTTD
This commit is contained in:
@@ -798,11 +798,14 @@ static void ANDROID_UpdateRects(_THIS, int numrects, SDL_Rect *rects)
|
||||
{
|
||||
if( SDL_VideoThreadID != SDL_ThreadID() )
|
||||
{
|
||||
/*
|
||||
// Crash to get stack trace and determine culprit thread
|
||||
static count = 100;
|
||||
__android_log_print(ANDROID_LOG_INFO, "libSDL", "Error: calling %s not from the main thread!", __PRETTY_FUNCTION__);
|
||||
count--;
|
||||
if(count <=0 )
|
||||
abort();
|
||||
*/
|
||||
__android_log_print(ANDROID_LOG_INFO, "libSDL", "Error: calling %s not from the main thread!", __PRETTY_FUNCTION__);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user