mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
gamma correct the loaded lightmaps so swgamma works better (MUCH better:)
This commit is contained in:
parent
5547c56342
commit
75c7119cd8
1 changed files with 3 additions and 2 deletions
|
@ -47,6 +47,7 @@ static const char rcsid[] =
|
||||||
#include "QF/texture.h"
|
#include "QF/texture.h"
|
||||||
#include "QF/tga.h"
|
#include "QF/tga.h"
|
||||||
#include "QF/va.h"
|
#include "QF/va.h"
|
||||||
|
#include "QF/vid.h"
|
||||||
#include "QF/GL/qf_textures.h"
|
#include "QF/GL/qf_textures.h"
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
|
@ -148,12 +149,12 @@ Mod_LoadLighting (lump_t *l)
|
||||||
|
|
||||||
if (mod_lightmap_bytes > 1)
|
if (mod_lightmap_bytes > 1)
|
||||||
for (i = 0; i < l->filelen ; i++) {
|
for (i = 0; i < l->filelen ; i++) {
|
||||||
d = *in++;
|
d = gammatable[*in++];
|
||||||
*out++ = d;
|
*out++ = d;
|
||||||
*out++ = d;
|
*out++ = d;
|
||||||
*out++ = d;
|
*out++ = d;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for (i = 0; i < l->filelen ; i++)
|
for (i = 0; i < l->filelen ; i++)
|
||||||
*out++ = *in++;
|
*out++ = gammatable[*in++];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue