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
This commit is contained in:
GPUCode
2023-02-25 18:16:53 +02:00
parent 2c9e0ec723
commit 33be1b744b

View File

@@ -918,8 +918,8 @@ bool RasterizerCache<T>::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) {