diff --git a/engine/gl/gl_vidlinuxglx.c b/engine/gl/gl_vidlinuxglx.c index a2642d3c..cc469b3e 100644 --- a/engine/gl/gl_vidlinuxglx.c +++ b/engine/gl/gl_vidlinuxglx.c @@ -692,7 +692,6 @@ void GLVID_SetPalette (unsigned char *palette) unsigned r,g,b; unsigned short i; unsigned *table; - unsigned *table2; extern qbyte gammatable[256]; // @@ -702,7 +701,6 @@ void GLVID_SetPalette (unsigned char *palette) pal = palette; table = d_8to24rgbtable; - table2 = d_8to24bgrtable; for (i=0 ; i<256 ; i++) { r = gammatable[pal[0]]; @@ -711,10 +709,8 @@ void GLVID_SetPalette (unsigned char *palette) pal += 3; *table++ = BigLong((r<<24)|(g<<16)|(b<<8)|255); - *table2++ = BigLong((b<<24)|(g<<16)|(r<<8)|255); } - d_8to24bgrtable[255] &= BigLong(0xffffff00); // 255 is transparent d_8to24rgbtable[255] &= BigLong(0xffffff00); // 255 is transparent } diff --git a/engine/gl/gl_vidmacos.c b/engine/gl/gl_vidmacos.c index 8634a0b6..ba71df52 100644 --- a/engine/gl/gl_vidmacos.c +++ b/engine/gl/gl_vidmacos.c @@ -162,14 +162,12 @@ void GLVID_SetPalette (unsigned char *palette) unsigned int r,g,b; int i; unsigned *table1; - unsigned *table2; extern qbyte gammatable[256]; Con_Printf("Converting 8to24\n"); pal = palette; table1 = d_8to24rgbtable; - table2 = d_8to24bgrtable; if (vid_hardwaregamma.value) { @@ -181,7 +179,6 @@ void GLVID_SetPalette (unsigned char *palette) pal += 3; *table1++ = LittleLong((255<<24) + (r<<0) + (g<<8) + (b<<16)); - *table2++ = LittleLong((255<<24) + (r<<16) + (g<<8) + (b<<0)); } } else @@ -194,10 +191,8 @@ void GLVID_SetPalette (unsigned char *palette) pal += 3; *table1++ = LittleLong((255<<24) + (r<<0) + (g<<8) + (b<<16)); - *table2++ = LittleLong((255<<24) + (r<<16) + (g<<8) + (b<<0)); } } - d_8to24bgrtable[255] &= LittleLong(0xffffff); // 255 is transparent d_8to24rgbtable[255] &= LittleLong(0xffffff); // 255 is transparent Con_Printf("Converted\n"); } diff --git a/engine/gl/gl_vidmorphos.c b/engine/gl/gl_vidmorphos.c index e52c827c..087fff05 100644 --- a/engine/gl/gl_vidmorphos.c +++ b/engine/gl/gl_vidmorphos.c @@ -618,7 +618,6 @@ void GLVID_SetPalette (unsigned char *palette) unsigned int r,g,b; int i; unsigned *table1; - unsigned *table2; extern qbyte gammatable[256]; Con_Printf("Converting 8to24\n");