From e7b01bb6b630e5e29df6591fa060540f15f1f28e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 14 Jan 2012 22:20:23 +0900 Subject: [PATCH] Put the transparent color back to 0,0,0,0 rgba. Blended sprites were a tad ugly without that. --- libs/video/targets/vid_common_glsl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/video/targets/vid_common_glsl.c b/libs/video/targets/vid_common_glsl.c index 61deb34b7..1a77b3f94 100644 --- a/libs/video/targets/vid_common_glsl.c +++ b/libs/video/targets/vid_common_glsl.c @@ -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;