1
0
Fork 0
forked from fte/fteqw

Prevent the double boost of gamma.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@413 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-11-13 17:24:33 +00:00
parent dbf4d2b8c4
commit a22b226f6c

View file

@ -1593,7 +1593,8 @@ int Mod_LoadHiResTexture(char *name, qboolean mipmap, qboolean alpha, qboolean c
{
if ((data = Read32BitImageFile(buf, com_filesize, &image_width, &image_height)))
{
if (colouradjust)
extern cvar_t vid_hardwaregamma;
if (colouradjust && !vid_hardwaregamma.value)
BoostGamma(data, image_width, image_height);
TRACE(("dbg: Mod_LoadHiResTexture: %s loaded\n", name));
len = GL_LoadTexture32 (name, image_width, image_height, (unsigned*)data, mipmap, alpha);