gamma correct the loaded lightmaps so swgamma works better (MUCH better:)

This commit is contained in:
Bill Currie 2002-09-15 05:04:14 +00:00
parent 5547c56342
commit 75c7119cd8

View file

@ -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++];
}