mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 10:43:29 +00:00
Fix the palette uploading.
Ooooops :P
This commit is contained in:
parent
7bd5ab882c
commit
e6c6de3a2a
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ VID_SetPalette (unsigned char *palette)
|
|||
Sys_MaskPrintf (SYS_VID, "Converting palette to RGBA texture\n");
|
||||
pal = malloc (256 * 4);
|
||||
for (i = 0, ip = palette, op = pal; i < 255; i++) {
|
||||
*op++ = *ip++;
|
||||
*op++ = *ip++;
|
||||
*op++ = *ip++;
|
||||
*op++ = 255; // alpha = 1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue