mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-09 04:36:23 +00:00
Fixed a too-small memory allocation for Encore remaps, removing all memory-related crashes in Software.
This commit is contained in:
parent
8a4542a5ef
commit
a597d9b463
1 changed files with 1 additions and 1 deletions
|
|
@ -731,7 +731,7 @@ lighttable_t *R_CreateLightTable(extracolormap_t *extra_colormap)
|
|||
|
||||
// Now allocate memory for the actual colormap array itself!
|
||||
// aligned on 8 bit for asm code
|
||||
colormap_p = Z_MallocAlign((256 * 34) + 10, PU_LEVEL, NULL, 8);
|
||||
colormap_p = Z_MallocAlign((256 * (encoremap ? 64 : 32)) + 10, PU_LEVEL, NULL, 8);
|
||||
lighttable = (UINT8 *)colormap_p;
|
||||
|
||||
// Calculate the palette index for each palette index, for each light level
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue