mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
allocate space for the color maps
This commit is contained in:
parent
f7f04aad5f
commit
5134978100
1 changed files with 3 additions and 0 deletions
|
@ -197,6 +197,9 @@ void
|
|||
VID_MakeColormaps (int fullbrights, byte *pal)
|
||||
{
|
||||
vid.fullbright = fullbrights;
|
||||
vid.colormap8 = malloc (256*VID_GRADES * sizeof (byte));
|
||||
vid.colormap16 = malloc (256*VID_GRADES * sizeof (short));
|
||||
vid.colormap32 = malloc (256*VID_GRADES * sizeof (int));
|
||||
VID_MakeColormap8(vid.colormap8, pal);
|
||||
VID_MakeColormap16(vid.colormap16, pal);
|
||||
VID_MakeColormap32(vid.colormap32, pal);
|
||||
|
|
Loading…
Reference in a new issue