From 581b6316b7c418996d193173e7ea107ce6d950a0 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 12 Jan 2014 16:50:20 -0600 Subject: [PATCH] Fix GL2 deluxemap 0,0,0 to 127,127,127 Checked if first byte was 0 twice instead of checking second byte. --- code/renderergl2/tr_bsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/renderergl2/tr_bsp.c b/code/renderergl2/tr_bsp.c index 2947e8ff..c796e625 100644 --- a/code/renderergl2/tr_bsp.c +++ b/code/renderergl2/tr_bsp.c @@ -471,7 +471,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] =