mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-25 16:41:04 +00:00
Move setting currentRenderVfb_ to NULL to when it's really needed.
This commit is contained in:
parent
50fc54c92a
commit
fdf17cb558
@ -1119,10 +1119,7 @@ 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
|
||||
@ -1130,6 +1127,7 @@ void FramebufferManager::ReadFramebufferToMemory(VirtualFramebuffer *vfb, bool s
|
||||
#endif
|
||||
|
||||
if (vfb) {
|
||||
|
||||
// We'll pseudo-blit framebuffers here to get a resized and flipped version of vfb.
|
||||
// For now we'll keep these on the same struct as the ones that can get displayed
|
||||
// (and blatantly copy work already done above while at it).
|
||||
@ -1233,6 +1231,9 @@ void FramebufferManager::ReadFramebufferToMemory(VirtualFramebuffer *vfb, bool s
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Null out currentRenderVfb_ so it gets set again properly.
|
||||
currentRenderVfb_ = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user