mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-13 07:47:45 +00:00
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:
parent
dbf4d2b8c4
commit
a22b226f6c
1 changed files with 2 additions and 1 deletions
|
@ -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 ((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);
|
BoostGamma(data, image_width, image_height);
|
||||||
TRACE(("dbg: Mod_LoadHiResTexture: %s loaded\n", name));
|
TRACE(("dbg: Mod_LoadHiResTexture: %s loaded\n", name));
|
||||||
len = GL_LoadTexture32 (name, image_width, image_height, (unsigned*)data, mipmap, alpha);
|
len = GL_LoadTexture32 (name, image_width, image_height, (unsigned*)data, mipmap, alpha);
|
||||||
|
|
Loading…
Reference in a new issue