[ioquake3] 07/21: Remove unused imgFlag_t value IMGFLAG_SRGB
Simon McVittie
smcv at debian.org
Fri Aug 4 20:39:13 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit e62941396d852a7e96484f2ce10aed5b2e8a77f4
Author: Zack Middleton <zack at cloemail.com>
Date: Sun Jul 30 15:39:32 2017 -0500
Remove unused imgFlag_t value IMGFLAG_SRGB
---
code/renderercommon/tr_common.h | 3 +--
code/renderergl2/tr_shader.c | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/code/renderercommon/tr_common.h b/code/renderercommon/tr_common.h
index 3d463aa..9f15a2d 100644
--- a/code/renderercommon/tr_common.h
+++ b/code/renderercommon/tr_common.h
@@ -43,8 +43,7 @@ typedef enum
IMGFLAG_NO_COMPRESSION = 0x0010,
IMGFLAG_NOLIGHTSCALE = 0x0020,
IMGFLAG_CLAMPTOEDGE = 0x0040,
- IMGFLAG_SRGB = 0x0080,
- IMGFLAG_GENNORMALMAP = 0x0100,
+ IMGFLAG_GENNORMALMAP = 0x0080,
} imgFlags_t;
typedef struct image_s {
diff --git a/code/renderergl2/tr_shader.c b/code/renderergl2/tr_shader.c
index a774f7e..d9c8627 100644
--- a/code/renderergl2/tr_shader.c
+++ b/code/renderergl2/tr_shader.c
@@ -2255,7 +2255,7 @@ static void CollapseStagesToLightall(shaderStage_t *diffuse,
{
char normalName[MAX_QPATH];
image_t *normalImg;
- imgFlags_t normalFlags = (diffuseImg->flags & ~(IMGFLAG_GENNORMALMAP | IMGFLAG_SRGB)) | IMGFLAG_NOLIGHTSCALE;
+ imgFlags_t normalFlags = (diffuseImg->flags & ~IMGFLAG_GENNORMALMAP) | IMGFLAG_NOLIGHTSCALE;
// try a normalheight image first
COM_StripExtension(diffuseImg->imgName, normalName, MAX_QPATH);
@@ -2301,7 +2301,7 @@ static void CollapseStagesToLightall(shaderStage_t *diffuse,
{
char specularName[MAX_QPATH];
image_t *specularImg;
- imgFlags_t specularFlags = (diffuseImg->flags & ~(IMGFLAG_GENNORMALMAP | IMGFLAG_SRGB)) | IMGFLAG_NOLIGHTSCALE;
+ imgFlags_t specularFlags = (diffuseImg->flags & ~IMGFLAG_GENNORMALMAP) | IMGFLAG_NOLIGHTSCALE;
COM_StripExtension(diffuseImg->imgName, specularName, MAX_QPATH);
Q_strcat(specularName, MAX_QPATH, "_s");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list