Latte: Derive framebuffer size from correct mip of depth buffer

This commit is contained in:
Exzap 2024-03-12 16:16:52 +01:00
parent 6fa77feba3
commit 8bc444bb97
4 changed files with 5 additions and 6 deletions

View file

@ -618,7 +618,7 @@ bool LatteMRT::UpdateCurrentFBO()
}
// set effective size
sint32 effectiveWidth, effectiveHeight;
depthBufferView->baseTexture->GetEffectiveSize(effectiveWidth, effectiveHeight, 0);
depthBufferView->baseTexture->GetEffectiveSize(effectiveWidth, effectiveHeight, depthBufferView->firstMip);
if (rtEffectiveSize->width == 0 && rtEffectiveSize->height == 0)
{
rtEffectiveSize->width = effectiveWidth;