fix [#26955] GL Texture Size doesn't work.

Brecht: reverting this change you made r22532, which I cant see a reason for.
This commit is contained in:
2011-04-16 09:26:45 +00:00
parent 7f598451fc
commit 71f571a54d

View File

@@ -531,7 +531,7 @@ int GPU_verify_image(Image *ima, ImageUser *iuser, int tftile, int compare, int
}
/* scale if not a power of two */
if (!mipmap && (!is_pow2_limit(rectw) || !is_pow2_limit(recth))) {
if (!is_pow2_limit(rectw) || !is_pow2_limit(recth)) {
rectw= smaller_pow2_limit(rectw);
recth= smaller_pow2_limit(recth);