fix: iw4 materials not writing correct stateBitsEntry

This commit is contained in:
Jan
2025-06-28 14:51:04 +01:00
parent 2176480a37
commit b05a473e6a
2 changed files with 2 additions and 2 deletions

View File

@ -1128,7 +1128,7 @@ namespace IW4
struct Material
{
MaterialInfo info;
unsigned char stateBitsEntry[48];
char stateBitsEntry[48];
unsigned char textureCount;
unsigned char constantCount;
unsigned char stateBitsCount;

View File

@ -818,5 +818,5 @@ namespace IW4
}},
});
inline state_map::StateMapLayout stateMapLayout(std::extent_v<decltype(GfxStateBits::loadBits)>, stateMapEntryLayout, stateMapVarLayout);
inline state_map::StateMapLayout stateMapLayout(std::extent_v<decltype(GfxStateBits::loadBits.raw)>, stateMapEntryLayout, stateMapVarLayout);
} // namespace IW4