From 1aa3c39f774efe285abb903145e7a8533c31ee50 Mon Sep 17 00:00:00 2001 From: danyalzia Date: Sun, 29 Sep 2013 00:17:19 +0500 Subject: [PATCH] Do not read through PBOs --- GPU/GLES/Framebuffer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index c2af11f282..70909c4159 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -867,11 +867,14 @@ void FramebufferManager::ReadFramebufferToMemory(VirtualFramebuffer *vfb, bool s #ifdef USING_GLES2 PackFramebufferSync_(nvfb); // synchronous glReadPixels #else + if(gl_extensions.PBO_ARB || !gl_extensions.ATIClampBug) + { if(!sync) { PackFramebufferAsync_(nvfb); // asynchronous glReadPixels using PBOs } else { PackFramebufferSync_(nvfb); // synchronous glReadPixels } + } #endif } }