(Texture2D): old formats work-around.

This commit is contained in:
morkt 2018-08-31 19:12:18 +04:00
parent 2908d7e2be
commit b04134c71b

View File

@ -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();