From 047ced1ad0b40a6641231eb91cf05671b2f8c97e Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 12 Jan 2014 16:50:20 -0600 Subject: Fix GL2 deluxemap 0,0,0 to 127,127,127 Checked if first byte was 0 twice instead of checking second byte. --- src/renderergl2/tr_bsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/renderergl2/tr_bsp.c b/src/renderergl2/tr_bsp.c index 082a0b9b..fcced63d 100644 --- a/src/renderergl2/tr_bsp.c +++ b/src/renderergl2/tr_bsp.c @@ -472,7 +472,7 @@ static void R_LoadLightmaps( lump_t *l, lump_t *surfs ) { image[j*4+2] = buf_p[j*3+2]; // make 0,0,0 into 127,127,127 - if ((image[j*4+0] == 0) && (image[j*4+0] == 0) && (image[j*4+2] == 0)) + if ((image[j*4+0] == 0) && (image[j*4+1] == 0) && (image[j*4+2] == 0)) { image[j*4+0] = image[j*4+1] = -- cgit