aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorAdya <114347520+AdyaGMD@users.noreply.github.com>2026-10-31 10:42:43 +0000
committerSssnowyyy <78863999+Sssnowyyy@users.noreply.github.com>2026-10-31 18:16:44 -0400
commitb48afba6d34df2c820e7d51e526bf8df73301437 (patch)
tree9e8dafebda2ba5454d6b5abb5e5f712451138869 /src/video_core/texture_cache
parente36d46693b0cc1324861625ee90e90b4799811d4 (diff)
Fix Compilation and crash on MACOS
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index c8aaf8dff5..3b783fc6c6 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -3063,6 +3063,10 @@ template <class P>
void TextureCache<P>::CopyImage(ImageId dst_id, ImageId src_id, std::vector<ImageCopy> copies) {
Image& dst = slot_images[dst_id];
Image& src = slot_images[src_id];
+ if (True(dst.flags & ImageFlagBits::UnwrittenSparse) ||
+ True(src.flags & ImageFlagBits::UnwrittenSparse)) {
+ return;
+ }
if (dst.info.astc_opaque != src.info.astc_opaque) {
// BC1 and BC3 blocks differ in size, so the host can't copy between them; both hold the
// same guest data, which is uploaded from guest memory instead.