GPU: Try to avoid FB download without an FBO.

This commit is contained in:
Unknown W. Brackets 2017-11-30 15:37:43 -08:00
parent e0ccbd31b6
commit 0b61ffad08

View file

@ -2043,7 +2043,7 @@ void FramebufferManagerCommon::ReadFramebufferToMemory(VirtualFramebuffer *vfb,
if (x + w >= vfb->bufferWidth) {
w = vfb->bufferWidth - x;
}
if (vfb) {
if (vfb && vfb->fbo) {
// We'll pseudo-blit framebuffers here to get a resized version of vfb.
OptimizeDownloadRange(vfb, x, y, w, h);
if (vfb->renderWidth == vfb->width && vfb->renderHeight == vfb->height) {