field_10 -> Usage, Usage -> field_12

This commit is contained in:
krystalgamer 2024-09-25 17:15:33 +02:00
parent 7a47c4b9f8
commit 68fd1028ef
4 changed files with 6 additions and 6 deletions

View File

@ -420,7 +420,7 @@ void CQuadBit::SetTexture(u32 checksum)
if (pTexture)
{
if (pTexture->Usage & 0xF0)
if (pTexture->field_12 & 0xF0)
this->mCodeBGR |= 0x20;
// @FIXME

View File

@ -177,8 +177,8 @@ void validate_Texture(void)
VALIDATE(Texture, v3, 0xB);
VALIDATE(Texture, TexWin, 0xC);
VALIDATE(Texture, field_10, 0x10);
VALIDATE(Texture, Usage, 0x12);
VALIDATE(Texture, Usage, 0x10);
VALIDATE(Texture, field_12, 0x12);
VALIDATE(Texture, Checksum, 0x14);
VALIDATE(Texture, pPalette, 0x18);

View File

@ -222,8 +222,8 @@ void NewTextureEntry(u32 checksum)
pTex->pNext->pPrevious = pTex;
pTex->Checksum = checksum;
pTex->Usage &= 0xFFF0;
pTex->field_10 = 0;
pTex->field_12 &= 0xFFF0;
pTex->Usage = 0;
pTex->clut = 0;
pTex->u0 = 0;
pTex->v0 = 0;

View File

@ -26,8 +26,8 @@ struct Texture
u32 TexWin;
u16 field_10;
u16 Usage;
u16 field_12;
u32 Checksum;
tag_S_Pal* pPalette;