summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-05-11 07:21:02 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-06-21 02:36:12 +0200
commitd65a4af89582f272efbbfd47d1ee78e616553312 (patch)
tree82e3742e6a03f55ebe4b3aecc21c554d4d5d9334 /src/video_core/texture_cache
parentengine_upload: Addapt to new Texture Cache (diff)
downloadyuzu-d65a4af89582f272efbbfd47d1ee78e616553312.tar
yuzu-d65a4af89582f272efbbfd47d1ee78e616553312.tar.gz
yuzu-d65a4af89582f272efbbfd47d1ee78e616553312.tar.bz2
yuzu-d65a4af89582f272efbbfd47d1ee78e616553312.tar.lz
yuzu-d65a4af89582f272efbbfd47d1ee78e616553312.tar.xz
yuzu-d65a4af89582f272efbbfd47d1ee78e616553312.tar.zst
yuzu-d65a4af89582f272efbbfd47d1ee78e616553312.zip
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/texture_cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 1b8ada910..7058399e2 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -133,6 +133,11 @@ public:
return {};
}
+ if (regs.color_mask[index].raw != 0) {
+ SetEmptyColorBuffer(index);
+ return {};
+ }
+
const auto& config{regs.rt[index]};
const auto gpu_addr{config.Address()};
if (!gpu_addr) {