mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Null out currentRenderVfb_
This fixes the missing stuffs in Tactic Orge
This commit is contained in:
parent
ebd3d214ae
commit
cf7229e05e
1 changed files with 5 additions and 1 deletions
|
@ -851,7 +851,7 @@ void FramebufferManager::DoSetRenderFrameBuffer() {
|
|||
} else if (vfb != currentRenderVfb_) {
|
||||
|
||||
if (updateVRAM_ && !vfb->memoryUpdated) {
|
||||
ReadFramebufferToMemory(vfb, true, 0, 0, 480, 272);
|
||||
ReadFramebufferToMemory(vfb, true, 0, 0, vfb->width, vfb->height);
|
||||
}
|
||||
// Use it as a render target.
|
||||
DEBUG_LOG(SCEGE, "Switching render target to FBO for %08x: %i x %i x %i ", vfb->fb_address, vfb->width, vfb->height, vfb->format);
|
||||
|
@ -1119,6 +1119,10 @@ void FramebufferManager::CopyDisplayToOutput() {
|
|||
}
|
||||
|
||||
void FramebufferManager::ReadFramebufferToMemory(VirtualFramebuffer *vfb, bool sync, int x, int y, int w, int h) {
|
||||
|
||||
// Null out currentRenderVfb_
|
||||
currentRenderVfb_ = NULL;
|
||||
|
||||
#ifndef USING_GLES2
|
||||
if (sync) {
|
||||
PackFramebufferAsync_(NULL); // flush async just in case when we go for synchronous update
|
||||
|
|
Loading…
Add table
Reference in a new issue