0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-23 10:25:49 +00:00

Fix out of range exception when a invalid base lod is used (#1931)

This commit is contained in:
gdkchan 2021-01-19 00:04:38 -03:00 committed by GitHub
parent 2fe3b8e58c
commit 03aab63e03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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