Fix crash in non-buffered rendering.

This commit is contained in:
Unknown W. Brackets 2014-01-04 17:29:00 -08:00
parent bb864bdb9a
commit 2a56c76f55

View File

@ -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);