mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-01 13:23:42 +01:00
Fix texture slice out-of-bounds error
This commit is contained in:
parent
5fc8209c85
commit
50b6d773ef
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ public sealed unsafe class MaterialTemplatePickers : IUiService
|
|||
continue;
|
||||
|
||||
var texture = textureRHs[j].Value->CsHandle.Texture;
|
||||
if (texture == null)
|
||||
if (texture == null || sliceIndex >= texture->ArraySize)
|
||||
continue;
|
||||
|
||||
var handle = _textureArraySlicer.GetImGuiHandle(texture, sliceIndex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue