mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-21 01:57:53 -05:00
Correct Mipmaps View method in Texture Cache
This commit is contained in:
committed by
ReinUsesLisp
parent
d86f9cd709
commit
1af4414861
@ -282,8 +282,7 @@ public:
|
||||
return {};
|
||||
}
|
||||
const std::size_t size = view_params.GetGuestSizeInBytes();
|
||||
const GPUVAddr relative_address = view_addr - gpu_addr;
|
||||
auto layer_mipmap = GetLayerMipmap(relative_address);
|
||||
auto layer_mipmap = GetLayerMipmap(view_addr);
|
||||
if (!layer_mipmap) {
|
||||
return {};
|
||||
}
|
||||
@ -298,7 +297,7 @@ public:
|
||||
vp.num_layers = 1;
|
||||
vp.base_level = mipmap;
|
||||
vp.num_levels = 1;
|
||||
vp.target = params.target;
|
||||
vp.target = view_params.target;
|
||||
return {GetView(vp)};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user