diff options
author | gdkchan <gab.dark.100@gmail.com> | 2021-01-19 00:04:38 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 14:04:38 +1100 |
commit | 03aab63e0320ab8c3097d59ca5c474f6168e48a4 (patch) | |
tree | 441400bba90b3ec040c5eddffabd96a568b73f27 /Ryujinx.Graphics.Gpu/Image/TexturePool.cs | |
parent | 2fe3b8e58c63196327214319f5d9654a4b3d30b2 (diff) |
Fix out of range exception when a invalid base lod is used (#1931)
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TexturePool.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TexturePool.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TexturePool.cs b/Ryujinx.Graphics.Gpu/Image/TexturePool.cs index 065844cb..dfcd8a52 100644 --- a/Ryujinx.Graphics.Gpu/Image/TexturePool.cs +++ b/Ryujinx.Graphics.Gpu/Image/TexturePool.cs @@ -223,7 +223,7 @@ namespace Ryujinx.Graphics.Gpu.Image 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 // to the address, this allows the texture manager to find the base level from the |