Set min/mag filter to GL_LINEAR when disable mipmapping

This commit is contained in:
raven02 2013-04-03 16:43:09 +08:00
parent 5bb006391c
commit fe5c3d778c

View File

@ -437,6 +437,11 @@ void TextureCache::UpdateSamplingParams(TexCacheEntry &entry, bool force) {
minFilt |= 1;
}
if (!g_Config.bMipMap) {
magFilt &= 1;
minFilt &= 1;
}
if (force || entry.minFilt != minFilt) {
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, MinFiltGL[minFilt]);
entry.minFilt = minFilt;