소스 검색

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

gdkchan 5 년 전
부모
커밋
03aab63e03
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Ryujinx.Graphics.Gpu/Image/TexturePool.cs

+ 1 - 1
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