Fix windows menus for the new tex filtering options.

This commit is contained in:
Henrik Rydgård committed 2021-09-05 23:54:41 +02:00
1 parent 6b76bcf070
commit 1df31e9304
3 files changed
+11 -8

No files matched your search

+3 -5
View File
@@ -754,12 +754,9 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
if (g_Config.iTexFiltering == TEX_FILTER_AUTO_MAX_QUALITY) {
// Boost the number of mipmaps.
int maxPossibleMipmaps = log2i(std::min(gstate.getTextureWidth(0), gstate.getTextureHeight(0)));
if (maxPossibleMipmaps != maxLevelToGenerate) {
maxLevelToGenerate = maxPossibleMipmaps;
}
maxLevelToGenerate = maxPossibleMipmaps;
}
// If GLES3 is available, we can preallocate the storage, which makes texture loading more efficient.
VkFormat dstFmt = GetDestFormat(GETextureFormat(entry->format), gstate.getClutPaletteFormat());
@@ -807,7 +804,8 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
}
}
// TODO
// TODO: Support mip levels for upscaled images.
// Probably can just remove this check?
if (scaleFactor > 1) {
maxLevel = 0;
}