mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(Texture2D): old formats work-around.
This commit is contained in:
parent
2908d7e2be
commit
b04134c71b
@ -79,9 +79,12 @@ namespace GameRes.Formats.Unity
|
||||
m_CompleteImageSize = reader.ReadInt32();
|
||||
m_TextureFormat = (TextureFormat)reader.ReadInt32();
|
||||
m_MipCount = reader.ReadInt32();
|
||||
m_IsReadable = reader.ReadBool();
|
||||
m_ReadAllowed = reader.ReadBool();
|
||||
reader.Align();
|
||||
if (reader.Format > 9)
|
||||
{
|
||||
m_IsReadable = reader.ReadBool();
|
||||
m_ReadAllowed = reader.ReadBool();
|
||||
reader.Align();
|
||||
}
|
||||
m_ImageCount = reader.ReadInt32();
|
||||
m_TextureDimension = reader.ReadInt32();
|
||||
m_FilterMode = reader.ReadInt32();
|
||||
|
Loading…
x
Reference in New Issue
Block a user