--- deliantra/Deliantra-Client/DC/Texture.pm 2007/08/21 00:59:34 1.27 +++ deliantra/Deliantra-Client/DC/Texture.pm 2007/08/28 01:23:47 1.28 @@ -163,13 +163,13 @@ if $self->{minify}; # against rather broken cards we enforce a maximum texture size - $tw = min $MAX_W, minpot $tw; - $th = min $MAX_H, minpot $th; + $tw = min $MAX_W, $tw; + $th = min $MAX_H, $th; # if only pot-textures are allowed, pot'ify tw/th - unless ($GL_NPOT && 0) {#d# - $tw = minpot $tw; - $th = minpot $th; + unless ($GL_NPOT) { + $tw = CFPlus::minpot $tw; + $th = CFPlus::minpot $th; } # now further decrease texture size until the