Fix black/missing textures in few games

This commit is contained in:
raven02 2013-08-07 22:47:41 +08:00
parent 41f90303b2
commit ba4d236d18

View file

@ -211,7 +211,7 @@ inline void TextureCache::AttachFramebuffer(TexCacheEntry *entry, u32 address, V
if (framebuffer->format != entry->format) {
WARN_LOG_REPORT_ONCE(diffFormat2, HLE, "Render to texture with different formats %d != %d at %08x", entry->format, framebuffer->format, address);
// TODO: Use an FBO to translate the palette?
AttachFramebufferInvalid(entry, framebuffer);
AttachFramebufferValid(entry, framebuffer);
} else if ((entry->addr - address) / entry->bufw < framebuffer->height) {
WARN_LOG_REPORT_ONCE(subarea, HLE, "Render to area containing texture at %08x", address);
// TODO: Keep track of the y offset.