Consider all framebuffers before settling.

This commit is contained in:
Unknown W. Brackets 2013-09-01 14:44:37 -07:00
parent 0e6f58853a
commit b5304cce57

View file

@ -1224,14 +1224,14 @@ void TextureCache::SetTexture() {
if (cachekey >= cacheKeyStart && cachekey < cacheKeyEnd) {
AttachFramebuffer(entry, framebuffer->fb_address, framebuffer, cachekey == cacheKeyStart);
}
}
// If we ended up with a framebuffer, attach it - no memory needed.
if (entry->framebuffer) {
SetTextureFramebuffer(entry);
lastBoundTexture = -1;
entry->lastFrame = gpuStats.numFlips;
return;
}
// If we ended up with a framebuffer, attach it - no texture decoding needed.
if (entry->framebuffer) {
SetTextureFramebuffer(entry);
lastBoundTexture = -1;
entry->lastFrame = gpuStats.numFlips;
return;
}
if (!replaceImages) {