mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 04:20:34 +00:00
- fixed the decal translation handler truncated the translation ID
This was yet another of those old misguided 16 bit space 'optimizations'.
This commit is contained in:
parent
2c3c91ff42
commit
a44e63babd
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ struct FDecalLib::FTranslation
|
|||
|
||||
uint32_t StartColor, EndColor;
|
||||
FTranslation *Next;
|
||||
uint16_t Index;
|
||||
uint32_t Index;
|
||||
};
|
||||
|
||||
struct FDecalAnimator
|
||||
|
@ -1115,7 +1115,7 @@ FDecalLib::FTranslation::FTranslation (uint32_t start, uint32_t end)
|
|||
table[i] = ColorMatcher.Pick (ri >> 24, gi >> 24, bi >> 24);
|
||||
}
|
||||
table[0] = table[1];
|
||||
Index = (uint16_t)TRANSLATION(TRANSLATION_Decals, tablei >> 8);
|
||||
Index = (uint32_t)TRANSLATION(TRANSLATION_Decals, tablei >> 8);
|
||||
}
|
||||
|
||||
FDecalLib::FTranslation *FDecalLib::FTranslation::LocateTranslation (uint32_t start, uint32_t end)
|
||||
|
|
Loading…
Reference in a new issue