From 6044e9169ee198f498fb8589da59fd67d497e24c Mon Sep 17 00:00:00 2001 From: briangr Date: Sun, 6 Dec 2009 16:23:07 +0000 Subject: [PATCH] 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 --- src/libs/tgfclient/img.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/tgfclient/img.cpp b/src/libs/tgfclient/img.cpp index 4de31c168..62f7dc31c 100644 --- a/src/libs/tgfclient/img.cpp +++ b/src/libs/tgfclient/img.cpp @@ -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