From 82f262f6f9996100a9c6c3438e46bec3dc4e7740 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 22 Jul 2007 17:52:54 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1174 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/texture.cpp b/source/src/texture.cpp index 94af217c..74ecb020 100644 --- a/source/src/texture.cpp +++ b/source/src/texture.cpp @@ -19,7 +19,7 @@ void createtexture(int tnum, int w, int h, void *pixels, int clamp, bool mipmap, int tw = w, th = h; if(maxtexsize<0) glGetIntegerv(GL_MAX_TEXTURE_SIZE, (GLint *)&maxtexsize); if(maxtexsize) while(tw>maxtexsize || th>maxtexsize) { tw /= 2; th /= 2; } - if(tw!=w) + if(tw!=w || th!=h) { if(gluScaleImage(format, w, h, GL_UNSIGNED_BYTE, pixels, tw, th, GL_UNSIGNED_BYTE, pixels)) {