From 5737bb7bc5e99b6b66afc9e2e0cda46dd53fa323 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Wed, 19 Nov 2008 18:42:44 +0000 Subject: [PATCH] texture size rounding fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3652 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/texture.cpp b/source/src/texture.cpp index e9918735..54cba4e9 100644 --- a/source/src/texture.cpp +++ b/source/src/texture.cpp @@ -94,8 +94,8 @@ void resizetexture(int w, int h, bool mipmap, GLenum target, int &tw, int &th) tw = th = 1; while(tw < w) tw *= 2; while(th < h) th *= 2; - if(w < tw - tw/2) tw /= 2; - if(h < th - th/2) th /= 2; + if(w < tw - tw/4) tw /= 2; + if(h < th - th/4) th /= 2; } else {