mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- changed palswap management to handle the size of full lookup tables.
This commit is contained in:
parent
620897ecdd
commit
c050a0c4c8
3 changed files with 24 additions and 10 deletions
|
@ -376,7 +376,7 @@ void polymost_glinit()
|
|||
palswapTextureID = 0;
|
||||
for (int palookupnum = 0; palookupnum < MAXPALOOKUPS; ++palookupnum)
|
||||
{
|
||||
GLInterface.SetPalswapData(palookupnum, palookup[palookupnum]);
|
||||
GLInterface.SetPalswapData(palookupnum, (uint8_t*)palookup[palookupnum], numshades+1);
|
||||
}
|
||||
GLInterface.UpdatePalswaps(256, numshades+1);
|
||||
}
|
||||
|
@ -708,7 +708,7 @@ void uploadpalswaps(int count, int32_t* swaps)
|
|||
{
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
GLInterface.SetPalswapData(i, (uint8_t*)palookup[i]);
|
||||
GLInterface.SetPalswapData(i, (uint8_t*)palookup[i], numshades + 1);
|
||||
}
|
||||
GLInterface.UpdatePalswaps(256, numshades + 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue