mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-26 02:54:17 +01:00
Latte: Fix regression in dd7cb74
This commit is contained in:
parent
224866c3d2
commit
6fa77feba3
@ -618,7 +618,7 @@ bool LatteMRT::UpdateCurrentFBO()
|
|||||||
}
|
}
|
||||||
// set effective size
|
// set effective size
|
||||||
sint32 effectiveWidth, effectiveHeight;
|
sint32 effectiveWidth, effectiveHeight;
|
||||||
depthBufferView->baseTexture->GetEffectiveSize(effectiveWidth, effectiveHeight, depthBufferViewFirstSlice);
|
depthBufferView->baseTexture->GetEffectiveSize(effectiveWidth, effectiveHeight, 0);
|
||||||
if (rtEffectiveSize->width == 0 && rtEffectiveSize->height == 0)
|
if (rtEffectiveSize->width == 0 && rtEffectiveSize->height == 0)
|
||||||
{
|
{
|
||||||
rtEffectiveSize->width = effectiveWidth;
|
rtEffectiveSize->width = effectiveWidth;
|
||||||
|
@ -206,7 +206,11 @@ void LatteTexture_updateTexturesForStage(LatteDecompilerShader* shaderContext, u
|
|||||||
|
|
||||||
bool isDepthSampler = shaderContext->textureUsesDepthCompare[textureIndex];
|
bool isDepthSampler = shaderContext->textureUsesDepthCompare[textureIndex];
|
||||||
// look for already existing texture
|
// look for already existing texture
|
||||||
LatteTextureView* textureView = LatteTextureViewLookupCache::lookup(physAddr, width, height, depth, pitch, viewFirstMip, viewNumMips, viewFirstSlice, viewNumSlices, format, dim, isDepthSampler);
|
LatteTextureView* textureView;
|
||||||
|
if (isDepthSampler == false)
|
||||||
|
textureView = LatteTextureViewLookupCache::lookup(physAddr, width, height, depth, pitch, viewFirstMip, viewNumMips, viewFirstSlice, viewNumSlices, format, dim);
|
||||||
|
else
|
||||||
|
textureView = LatteTextureViewLookupCache::lookup(physAddr, width, height, depth, pitch, viewFirstMip, viewNumMips, viewFirstSlice, viewNumSlices, format, dim, true);
|
||||||
if (!textureView)
|
if (!textureView)
|
||||||
{
|
{
|
||||||
// view not found, create a new mapping which will also create a new texture if necessary
|
// view not found, create a new mapping which will also create a new texture if necessary
|
||||||
|
Loading…
Reference in New Issue
Block a user