summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_shader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl2/tr_shader.c')
-rw-r--r--src/renderergl2/tr_shader.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/renderergl2/tr_shader.c b/src/renderergl2/tr_shader.c
index aaed0e63..567d465b 100644
--- a/src/renderergl2/tr_shader.c
+++ b/src/renderergl2/tr_shader.c
@@ -686,9 +686,6 @@ static qboolean ParseStage( shaderStage_t *stage, char **text )
{
if (r_genNormalMaps->integer)
flags |= IMGFLAG_GENNORMALMAP;
-
- if (r_srgb->integer)
- flags |= IMGFLAG_SRGB;
}
stage->bundle[0].image[0] = R_FindImageFile( token, type, flags );
@@ -733,9 +730,6 @@ static qboolean ParseStage( shaderStage_t *stage, char **text )
{
if (r_genNormalMaps->integer)
flags |= IMGFLAG_GENNORMALMAP;
-
- if (r_srgb->integer)
- flags |= IMGFLAG_SRGB;
}
@@ -777,9 +771,6 @@ static qboolean ParseStage( shaderStage_t *stage, char **text )
if (!shader.noPicMip)
flags |= IMGFLAG_PICMIP;
- if (r_srgb->integer)
- flags |= IMGFLAG_SRGB;
-
stage->bundle[0].image[num] = R_FindImageFile( token, IMGTYPE_COLORALPHA, flags );
if ( !stage->bundle[0].image[num] )
{
@@ -1512,9 +1503,6 @@ static void ParseSkyParms( char **text ) {
int i;
imgFlags_t imgFlags = IMGFLAG_MIPMAP | IMGFLAG_PICMIP;
- if (r_srgb->integer)
- imgFlags |= IMGFLAG_SRGB;
-
// outerbox
token = COM_ParseExt( text, qfalse );
if ( token[0] == 0 ) {
@@ -3334,9 +3322,6 @@ shader_t *R_FindShader( const char *name, int lightmapIndex, qboolean mipRawImag
flags = IMGFLAG_NONE;
- if (r_srgb->integer)
- flags |= IMGFLAG_SRGB;
-
if (mipRawImage)
{
flags |= IMGFLAG_MIPMAP | IMGFLAG_PICMIP;