mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Address feedback to PR #15858
This commit is contained in:
parent
044b8d6479
commit
5046cbd015
1 changed files with 3 additions and 1 deletions
|
@ -537,7 +537,6 @@ void FramebufferManagerCommon::CopyToDepthFromOverlappingFramebuffers(VirtualFra
|
|||
sources.push_back(CopySource{ src, RASTER_COLOR });
|
||||
}
|
||||
} else if (src->z_address == dest->z_address && src->z_stride == dest->z_stride && src->depthBindSeq > dest->depthBindSeq) {
|
||||
// Don't bother if the buffer was from another frame. This heuristic is old.
|
||||
sources.push_back(CopySource{ src, RASTER_DEPTH });
|
||||
} else {
|
||||
// TODO: Do more detailed overlap checks here.
|
||||
|
@ -562,6 +561,9 @@ void FramebufferManagerCommon::CopyToDepthFromOverlappingFramebuffers(VirtualFra
|
|||
} else if (source.channel == RASTER_COLOR) {
|
||||
VirtualFramebuffer *src = source.vfb;
|
||||
// Copying color to depth.
|
||||
if (src->drawnFormat != GE_FORMAT_565) {
|
||||
WARN_LOG_ONCE(not565, G3D, "Drawn format of buffer at %08x not 565 as expected", src->fb_address);
|
||||
}
|
||||
BlitUsingRaster(src->fbo, 0.0f, 0.0f, src->renderWidth, src->renderHeight, dest->fbo, 0.0f, 0.0f, dest->renderWidth, dest->renderHeight, false, DRAW2D_565_TO_DEPTH, "565_to_depth");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue