1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Add fix for rare case of textures only using mipdata for ftex

This commit is contained in:
KillzXGaming 2019-07-07 15:21:44 -04:00
parent e1bb711bdb
commit 8f15b9fab0
7 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@ -94,6 +94,8 @@ namespace Switch_Toolbox.Library.Rendering
if (!Runtime.OpenTKInitialized || GLInitialized || Runtime.UseLegacyGL)
return;
return;
width = (int)GenericTexture.Width;
height = (int)GenericTexture.Height;
if (GenericTexture.ArrayCount == 0)

View File

@ -627,6 +627,10 @@ namespace Switch_Toolbox.Library
if (tex.numArray == 0)
tex.numArray = 1;
if (tex.data.Length <= 0)
tex.data = tex.mipData;
byte[] data = new byte[tex.data.Length];
byte[] mipdata = new byte[0];