mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 12:18:35 +01:00
Verify fbo exists when copying depth.
Should fix #5343 based on stack trace.
This commit is contained in:
1 parent
7a299fb1f2
commit
0bbeab28ec
1 file changed
+4
-2
@@ -1022,7 +1022,9 @@ void FramebufferManager::DoSetRenderFrameBuffer() {
|
||||
#endif
|
||||
|
||||
// Copy depth pixel value from the read framebuffer to the draw framebuffer
|
||||
BindFramebufferDepth(currentRenderVfb_,vfb);
|
||||
if (currentRenderVfb_) {
|
||||
BindFramebufferDepth(currentRenderVfb_, vfb);
|
||||
}
|
||||
currentRenderVfb_ = vfb;
|
||||
} else {
|
||||
vfb->last_frame_render = gpuStats.numFlips;
|
||||
@@ -1053,7 +1055,7 @@ void FramebufferManager::SetLineWidth() {
|
||||
}
|
||||
|
||||
void FramebufferManager::BindFramebufferDepth(VirtualFramebuffer *sourceframebuffer, VirtualFramebuffer *targetframebuffer) {
|
||||
if (!sourceframebuffer || !targetframebuffer->fbo || !useBufferedRendering_) {
|
||||
if (!sourceframebuffer->fbo || !targetframebuffer->fbo || !useBufferedRendering_) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user