summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_bsp.c
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-01-12 16:50:20 -0600
committerTim Angus <tim@ngus.net>2014-06-17 17:43:38 +0100
commit047ced1ad0b40a6641231eb91cf05671b2f8c97e (patch)
treea06e69ba8f6ef1d25d34c3fb02a8b7cbf8ebc790 /src/renderergl2/tr_bsp.c
parent52dba73260d3934cbaf72deaef108d118cef4209 (diff)
Fix GL2 deluxemap 0,0,0 to 127,127,127
Checked if first byte was 0 twice instead of checking second byte.
Diffstat (limited to 'src/renderergl2/tr_bsp.c')
-rw-r--r--src/renderergl2/tr_bsp.c2
1 files changed, 1 insertions, 1 deletions
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] =