mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-02 19:57:19 +01:00
Fix out of range exception when a invalid base lod is used (#1931)
This commit is contained in:
parent
2fe3b8e58c
commit
03aab63e03
@ -223,7 +223,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||||||
|
|
||||||
layerSize = sizeInfo.LayerSize;
|
layerSize = sizeInfo.LayerSize;
|
||||||
|
|
||||||
if (minLod != 0)
|
if (minLod != 0 && minLod < levels)
|
||||||
{
|
{
|
||||||
// If the base level is not zero, we additionally add the mip level offset
|
// If the base level is not zero, we additionally add the mip level offset
|
||||||
// to the address, this allows the texture manager to find the base level from the
|
// to the address, this allows the texture manager to find the base level from the
|
||||||
|
Loading…
Reference in New Issue
Block a user