mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Do not read through PBOs
This commit is contained in:
parent
b0189b9557
commit
1aa3c39f77
1 changed files with 3 additions and 0 deletions
|
@ -867,11 +867,14 @@ void FramebufferManager::ReadFramebufferToMemory(VirtualFramebuffer *vfb, bool s
|
||||||
#ifdef USING_GLES2
|
#ifdef USING_GLES2
|
||||||
PackFramebufferSync_(nvfb); // synchronous glReadPixels
|
PackFramebufferSync_(nvfb); // synchronous glReadPixels
|
||||||
#else
|
#else
|
||||||
|
if(gl_extensions.PBO_ARB || !gl_extensions.ATIClampBug)
|
||||||
|
{
|
||||||
if(!sync) {
|
if(!sync) {
|
||||||
PackFramebufferAsync_(nvfb); // asynchronous glReadPixels using PBOs
|
PackFramebufferAsync_(nvfb); // asynchronous glReadPixels using PBOs
|
||||||
} else {
|
} else {
|
||||||
PackFramebufferSync_(nvfb); // synchronous glReadPixels
|
PackFramebufferSync_(nvfb); // synchronous glReadPixels
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue