Fix graphical artifact in Jeanne d'Arc world map.

We need to use the last set render framebuffer, not the current one at
copy to output.
This commit is contained in:
Unknown W. Brackets committed 2014-06-11 00:54:54 -07:00
1 parent efc2de41ae
commit b9f805c71f
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -1441,8 +1441,7 @@ void FramebufferManager::ReadFramebufferToMemory(VirtualFramebuffer *vfb, bool s
}
#endif
// Null out currentRenderVfb_ so it gets set again properly.
currentRenderVfb_ = NULL;
RebindFramebuffer();
}
}
@@ -1968,7 +1967,6 @@ void FramebufferManager::UpdateFromMemory(u32 addr, int size, bool safe) {
if (MaskedEqual(vfb->fb_address, addr)) {
FlushBeforeCopy();
fbo_unbind();
currentRenderVfb_ = 0;
vfb->dirtyAfterDisplay = true;
vfb->reallyDirtyAfterDisplay = true;
@@ -1993,8 +1991,10 @@ void FramebufferManager::UpdateFromMemory(u32 addr, int size, bool safe) {
}
}
if (needUnbind)
if (needUnbind) {
fbo_unbind();
}
RebindFramebuffer();
}
}