Don't report a loadclut of 0.

This commit is contained in:
Unknown W. Brackets committed 2013-10-05 15:41:44 -07:00
1 parent 01c84caffc
commit 32f2f045e4
1 file changed
+2 -1
+2 -1
View File
@@ -472,7 +472,8 @@ void SoftGPU::ExecuteOp(u32 op, u32 diff)
if (Memory::IsValidAddress(clutAddr)) {
Memory::MemcpyUnchecked(clut, clutAddr, clutTotalBytes);
} else {
// TODO: Do something to the CLUT with 0?
} else if (clutAddr != 0) {
// TODO: Does this make any sense?
ERROR_LOG_REPORT_ONCE(badClut, G3D, "Software: Invalid CLUT address, filling with garbage instead of crashing");
memset(clut, 0xFF, clutTotalBytes);