Stack hint should look for 0, not -1, and not care about environment variables.

This commit is contained in:
Ryan C. Gordon committed 2015-05-26 21:19:23 -04:00
1 parent a8fa7bd1f7
commit baea64e642
4 files changed
+5 -13

No files matched your search

-2
View File
@@ -87,8 +87,6 @@ main(int argc, char *argv[])
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
return (1);
}
SDL_SetHintWithPriority(SDL_HINT_THREAD_STACK_SIZE, SDL_getenv(SDL_HINT_THREAD_STACK_SIZE), SDL_HINT_OVERRIDE);
signal(SIGSEGV, SIG_DFL);
for (i = 0; i < NUMTHREADS; i++) {