mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Put the transparent color back to 0,0,0,0 rgba.
Blended sprites were a tad ugly without that.
This commit is contained in:
parent
c884ef5f80
commit
e7b01bb6b6
1 changed files with 2 additions and 1 deletions
|
@ -124,12 +124,13 @@ VID_SetPalette (unsigned char *palette)
|
|||
qfglTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
qfglTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||
|
||||
for (i = 0, ip = palette, op = pal; i < 256; i++) {
|
||||
for (i = 0, ip = palette, op = pal; i < 255; i++) {
|
||||
*op++ = *ip++;
|
||||
*op++ = *ip++;
|
||||
*op++ = *ip++;
|
||||
*op++ = 255; // alpha = 1
|
||||
}
|
||||
QuatZero (op);
|
||||
|
||||
if (!glsl_palette) {
|
||||
GLuint tex;
|
||||
|
|
Loading…
Reference in a new issue