Delete non-fbo texture

This commit is contained in:
raven02 2013-07-20 01:24:20 +08:00
parent 88685b0c1e
commit 9b1d7f4166

View File

@ -178,7 +178,10 @@ void TextureCache::NotifyFramebuffer(u32 address, VirtualFramebuffer *framebuffe
DEBUG_LOG(HLE, "Render to texture detected at %08x!", address);
if (!entry->framebuffer)
entry->framebuffer = framebuffer;
// TODO: Delete the original non-fbo texture too.
else {
glBindTexture(GL_TEXTURE_2D, 0);
lastBoundTexture = -1;
}
}
}