When mipmap disabled , maxlevel always 0 (set earlier)

This commit is contained in:
raven02 committed 2014-01-11 16:26:36 +08:00
1 parent 1dfcbd0ea1
commit 271b680737
1 file changed
+1 -1
+1 -1
View File
@@ -1166,7 +1166,7 @@ void TextureCache::SetTexture(bool force) {
LoadTextureLevel(*entry, 0, replaceImages, dstFmt);
// Mipmapping only enable when texture scaling disable
if (g_Config.bMipMap && g_Config.iTexScalingLevel == 1 && maxLevel > 0) {
if (maxLevel > 0 && g_Config.iTexScalingLevel == 1) {
#ifndef USING_GLES2
for (int i = 1; i <= maxLevel; i++) {
LoadTextureLevel(*entry, i, replaceImages, dstFmt);