Removed debugging crash in video code, fixed OpenTTD

This commit is contained in:
pelya
2010-11-24 20:26:49 +02:00
parent a0cc34138b
commit b5caf53a8c
3 changed files with 25 additions and 8 deletions

View File

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