mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
Remove unused imgFlag_t value IMGFLAG_SRGB
This commit is contained in:
parent
39716745f9
commit
e62941396d
2 changed files with 3 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue