Possible fix for the occasional texture corruption issue.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1569 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2008-04-20 16:13:16 +00:00
parent edc97898a2
commit 4b8e36d0f8

View File

@ -256,7 +256,7 @@ enum
}
// Set up loading threads.
threadCount = MIN(OOCPUCount() /*- 1*/, (unsigned)kMaxWorkThreads);
threadCount = MIN(OOCPUCount() - 1, (unsigned)kMaxWorkThreads);
do
{
[NSThread detachNewThreadSelector:@selector(queueTask:) toTarget:self withObject:[NSNumber numberWithInt:threadNumber++]];