mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Fix windows menus for the new tex filtering options.
This commit is contained in:
1 parent
6b76bcf070
commit
1df31e9304
3 files changed
+11
-8
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user