Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

[texture_cache] Skip alias synchronization in texture cache when the image has no aliases. (#3740)

wildcard34fa39eae8b8
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 71210ffe6e..efae825885 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -2733,7 +2733,9 @@ void TextureCache<P>::PrepareImage(ImageId image_id, bool is_modification, bool
}
} else {
RefreshContents(image, image_id);
- SynchronizeAliases(image_id);
+ if (!image.aliased_images.empty()) {
+ SynchronizeAliases(image_id);
+ }
}
if (is_modification) {
MarkModification(image);