mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Depth scale functions: Clean up the naming, add a failing test
This commit is contained in:
1 parent
d426ce5118
commit
d65dae7185
16 files changed
+123
-69
No files matched your search
@@ -1063,7 +1063,7 @@ void FramebufferManagerCommon::NotifyRenderFramebufferSwitched(VirtualFramebuffe
|
||||
float clearDepth = 0.0f;
|
||||
if (vfb->usageFlags & FB_USAGE_INVALIDATE_DEPTH) {
|
||||
depthAction = Draw::RPAction::CLEAR;
|
||||
clearDepth = GetDepthScaleFactors().offset;
|
||||
clearDepth = GetDepthScaleFactors(gstate_c.UseFlags()).Offset();
|
||||
vfb->usageFlags &= ~FB_USAGE_INVALIDATE_DEPTH;
|
||||
}
|
||||
draw_->BindFramebufferAsRenderTarget(vfb->fbo, {Draw::RPAction::KEEP, depthAction, Draw::RPAction::KEEP, 0, clearDepth}, "FBSwitch");
|
||||
|
||||
Reference in new issue
Block a user