texture_cache return invalid buffer on deactivated color_mask

This commit is contained in:
Fernando Sahmkow 2019-05-11 01:21:02 -04:00 committed by ReinUsesLisp
parent 7884bf60a6
commit 4298dc8290
2 changed files with 9 additions and 2 deletions

View file

@ -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) {