Log when render to texture formats differ.

This commit is contained in:
Unknown W. Brackets committed 2013-07-30 00:02:33 -07:00
1 parent c31859021c
commit 797027779e
1 file changed
+3
+3
View File
@@ -185,6 +185,9 @@ void TextureCache::NotifyFramebuffer(u32 address, VirtualFramebuffer *framebuffe
if (it->first == cacheKey) {
DEBUG_LOG(HLE, "Render to texture detected at %08x!", address);
if (!entry->framebuffer) {
if (entry->format != framebuffer->format) {
WARN_LOG_REPORT(HLE, "Render to texture with different formats %d != %d", entry->format, framebuffer->format);
}
entry->framebuffer = framebuffer;
// TODO: Delete the original non-fbo texture too.
} else {