Add fix for rare case of textures only using mipdata for ftex
This commit is contained in:
parent
e1bb711bdb
commit
8f15b9fab0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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)
|
||||
|
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user