From ab654a2b6f04237340e5ae809a422422cd3ca100 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 21 Jul 2013 23:03:01 +0200 Subject: [PATCH] Quickfix for crashes switching rendering mode --- GPU/GLES/Framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 1d7683fac..dc42635e7 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -820,7 +820,7 @@ void FramebufferManager::ReadFramebufferToMemory(VirtualFramebuffer *vfb) { void FramebufferManager::BlitFramebuffer_(VirtualFramebuffer *src, VirtualFramebuffer *dst, bool flip, float upscale, float vscale) { // This only works with buffered rendering - if (!useBufferedRendering_) { + if (!useBufferedRendering_ || !src->fbo) { return; }