[iortcw] 76/89: All: Remove unused imgFlag_t value IMGFLAG_SRGB
Simon McVittie
smcv at debian.org
Fri Sep 8 10:44:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to tag 1.51b
in repository iortcw.
commit 0717985253b91a128fa9098df2ccda4fea8578cb
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date: Wed Aug 2 23:15:17 2017 -0400
All: Remove unused imgFlag_t value IMGFLAG_SRGB
---
MP/code/rend2/tr_local.h | 3 +--
MP/code/rend2/tr_shader.c | 4 ++--
MP/code/renderer/tr_local.h | 3 +--
SP/code/rend2/tr_local.h | 3 +--
SP/code/rend2/tr_shader.c | 4 ++--
SP/code/renderer/tr_local.h | 3 +--
6 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/MP/code/rend2/tr_local.h b/MP/code/rend2/tr_local.h
index cebc52c..6c7e30f 100644
--- a/MP/code/rend2/tr_local.h
+++ b/MP/code/rend2/tr_local.h
@@ -99,8 +99,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/MP/code/rend2/tr_shader.c b/MP/code/rend2/tr_shader.c
index cfa8c14..766eb19 100644
--- a/MP/code/rend2/tr_shader.c
+++ b/MP/code/rend2/tr_shader.c
@@ -2317,7 +2317,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);
@@ -2363,7 +2363,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");
diff --git a/MP/code/renderer/tr_local.h b/MP/code/renderer/tr_local.h
index 1508fdd..b03b80a 100644
--- a/MP/code/renderer/tr_local.h
+++ b/MP/code/renderer/tr_local.h
@@ -98,8 +98,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/SP/code/rend2/tr_local.h b/SP/code/rend2/tr_local.h
index 739cb60..48f9ae1 100644
--- a/SP/code/rend2/tr_local.h
+++ b/SP/code/rend2/tr_local.h
@@ -99,8 +99,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/SP/code/rend2/tr_shader.c b/SP/code/rend2/tr_shader.c
index 8029ccc..bec5b02 100644
--- a/SP/code/rend2/tr_shader.c
+++ b/SP/code/rend2/tr_shader.c
@@ -2345,7 +2345,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);
@@ -2391,7 +2391,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");
diff --git a/SP/code/renderer/tr_local.h b/SP/code/renderer/tr_local.h
index b978e3a..7f83c54 100644
--- a/SP/code/renderer/tr_local.h
+++ b/SP/code/renderer/tr_local.h
@@ -98,8 +98,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 {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list