From 75c7119cd853709ecc539bb4c714c9d92b6ab4da Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 15 Sep 2002 05:04:14 +0000 Subject: [PATCH] gamma correct the loaded lightmaps so swgamma works better (MUCH better:) --- libs/models/brush/gl_model_brush.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/models/brush/gl_model_brush.c b/libs/models/brush/gl_model_brush.c index d674c72f8..2e46d341f 100644 --- a/libs/models/brush/gl_model_brush.c +++ b/libs/models/brush/gl_model_brush.c @@ -47,6 +47,7 @@ static const char rcsid[] = #include "QF/texture.h" #include "QF/tga.h" #include "QF/va.h" +#include "QF/vid.h" #include "QF/GL/qf_textures.h" #include "compat.h" @@ -148,12 +149,12 @@ Mod_LoadLighting (lump_t *l) if (mod_lightmap_bytes > 1) for (i = 0; i < l->filelen ; i++) { - d = *in++; + d = gammatable[*in++]; *out++ = d; *out++ = d; *out++ = d; } else for (i = 0; i < l->filelen ; i++) - *out++ = *in++; + *out++ = gammatable[*in++]; }