mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 21:41:19 +12:00
Latte: Derive framebuffer size from correct mip of depth buffer
This commit is contained in:
parent
6fa77feba3
commit
8bc444bb97
4 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue