From ba4d236d189aba9a5caa8b4093b10ff0b1a7d4b9 Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 7 Aug 2013 22:47:41 +0800 Subject: [PATCH] Fix black/missing textures in few games --- GPU/GLES/TextureCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index 902dda2e16..69b2d52f2a 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -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.