mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Use proper copies for depth blits between multisampled framebuffers. Needed to keep all the information.
This commit is contained in:
1 parent
d554085388
commit
35777d5eef
1 file changed
+8
@@ -947,6 +947,14 @@ void FramebufferManagerCommon::BlitFramebufferDepth(VirtualFramebuffer *src, Vir
|
||||
|
||||
bool useRaster = draw_->GetDeviceCaps().fragmentShaderDepthWriteSupported && draw_->GetDeviceCaps().textureDepthSupported;
|
||||
|
||||
if (src->fbo->MultiSampleLevel() > 0 && dst->fbo->MultiSampleLevel() > 0) {
|
||||
// If multisampling, we want to copy depth properly so we get all the samples, to avoid aliased edges.
|
||||
// Can be seen in the fire in Jeanne D'arc, for example.
|
||||
if (useRaster && useCopy) {
|
||||
useRaster = false;
|
||||
}
|
||||
}
|
||||
|
||||
int w = std::min(src->renderWidth, dst->renderWidth);
|
||||
int h = std::min(src->renderHeight, dst->renderHeight);
|
||||
|
||||
|
||||
Reference in new issue
Block a user