From 33be1b744ba392cc2897fdf3e0d6289427e33257 Mon Sep 17 00:00:00 2001 From: GPUCode Date: Sat, 25 Feb 2023 18:16:53 +0200 Subject: [PATCH] rasterizer_cache: Limit mipmap skip to custom surfaces * Fixes missing mipmaps when custom textures is enabled but the game does not have any pack * Also fixes black textures in cases where a custom texture was not provided --- src/video_core/rasterizer_cache/rasterizer_cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_core/rasterizer_cache/rasterizer_cache.h b/src/video_core/rasterizer_cache/rasterizer_cache.h index 2a572812c..86e8581df 100644 --- a/src/video_core/rasterizer_cache/rasterizer_cache.h +++ b/src/video_core/rasterizer_cache/rasterizer_cache.h @@ -918,8 +918,8 @@ bool RasterizerCache::UploadCustomSurface(const Surface& surface, const Surfa // The old texture pack system did not support mipmaps so older packs might do // wonky things. For example Henriko's pack has mipmaps larger than the base - // level. To avoid crashes just don't upload mipmaps - if (custom_tex_manager.CompatibilityMode() && !is_base_level) { + // level. To avoid crashes just don't upload mipmaps for custom surfaces + if (custom_tex_manager.CompatibilityMode() && surface->IsCustom() && !is_base_level) { return true; } if (!texture) {