mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 08:50:33 +00:00
Fix crash in non-buffered rendering.
This commit is contained in:
parent
bb864bdb9a
commit
2a56c76f55
@ -865,7 +865,7 @@ void FramebufferManager::SetRenderFrameBuffer() {
|
||||
#endif
|
||||
|
||||
#ifndef USING_GLES2
|
||||
if (gl_extensions.FBO_ARB && currentRenderVfb_ != NULL && MaskedEqual(currentRenderVfb_->z_address, vfb->z_address)) {
|
||||
if (gl_extensions.FBO_ARB && currentRenderVfb_ != NULL && currentRenderVfb_->fbo != NULL && MaskedEqual(currentRenderVfb_->z_address, vfb->z_address)) {
|
||||
// Let's only do this if not clearing.
|
||||
if (!gstate.isModeClear() || !gstate.isClearModeDepthMask()) {
|
||||
fbo_bind_for_read(currentRenderVfb_->fbo);
|
||||
|
Loading…
Reference in New Issue
Block a user