git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@1950 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f7dbf66133099140cb2f9fea969533716dee85a9
Former-commit-id: bc9700466c739c2c52bc213e549ec38f88de6138
This commit is contained in:
briangr 2009-12-06 16:23:07 +00:00
parent 545573eb99
commit 6044e9169e

View file

@ -44,16 +44,16 @@ static char buf[1024];
int GetClosestPowerof2(int Size)
{
int sizes[8] = {2,4,16,128,256,512,1024,2048 };
int sizes[7] = {2,4,16,128,256,512,1024};
for (int i=0;i<8;i++)
for (int i=0;i<7;i++)
{
if (Size<=sizes[i])
return sizes[i];
}
//Do not allow textures larger then this for memory usage reasons
return 2048;
//Do not allow textures larger then this for memory usage reasons and performance reasons
return 1024;
}
void