Skip to content

Commit dcaabdd

Browse files
committed
wip: rename naivBlend to naive
1 parent 3fbba0c commit dcaabdd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/engine/renderer/tr_local.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ enum
12761276
| GLS_BLUEMASK_FALSE
12771277
| GLS_ALPHAMASK_FALSE,
12781278

1279-
GLS_NAIVEBLEND = ( 1 << 30 ),
1279+
GLS_NAIVE = ( 1 << 30 ),
12801280

12811281
GLS_DEFAULT = GLS_DEPTHMASK_TRUE
12821282
};

src/engine/renderer/tr_shader.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,9 +1496,9 @@ static bool LoadMap( shaderStage_t *stage, const char *buffer, stageType_t type,
14961496
case stageType_t::ST_COLORMAP:
14971497
case stageType_t::ST_DIFFUSEMAP:
14981498
{
1499-
bool naiveBlend = stage->stateBits & GLS_NAIVEBLEND;
1499+
bool naive = stage->stateBits & GLS_NAIVE;
15001500

1501-
if ( !naiveBlend )
1501+
if ( !naive )
15021502
{
15031503
imageParams.bits |= IF_SRGB;
15041504
stage->convertColorFromSRGB = tr.convertColorFromSRGB;
@@ -2098,7 +2098,7 @@ static bool ParseStage( shaderStage_t *stage, const char **text )
20982098
const char *token;
20992099
int colorMaskBits = 0;
21002100
int depthMaskBits = GLS_DEPTHMASK_TRUE, blendSrcBits = 0, blendDstBits = 0, atestBits = 0, depthFuncBits = 0, polyModeBits = 0;
2101-
int naiveBlendBits = 0;
2101+
int naiveBits = 0;
21022102
bool depthMaskExplicit = false;
21032103
int imageBits = 0;
21042104
filterType_t filterType;
@@ -2654,9 +2654,9 @@ static bool ParseStage( shaderStage_t *stage, const char **text )
26542654
depthMaskBits = 0;
26552655
}
26562656
}
2657-
else if ( !Q_stricmp( token, "naiveBlend" ) )
2657+
else if ( !Q_stricmp( token, "naive" ) )
26582658
{
2659-
naiveBlendBits |= GLS_NAIVEBLEND;
2659+
naiveBits |= GLS_NAIVE;
26602660
}
26612661
// stage <type>
26622662
else if ( !Q_stricmp( token, "stage" ) )
@@ -3346,7 +3346,7 @@ static bool ParseStage( shaderStage_t *stage, const char **text )
33463346
}
33473347

33483348
// compute state bits
3349-
stage->stateBits = colorMaskBits | depthMaskBits | blendSrcBits | blendDstBits | atestBits | depthFuncBits | polyModeBits | naiveBlendBits;
3349+
stage->stateBits = colorMaskBits | depthMaskBits | blendSrcBits | blendDstBits | atestBits | depthFuncBits | polyModeBits | naiveBits;
33503350

33513351
// Do not load heatHaze maps when r_heatHaze is disabled.
33523352
if ( stage->type == stageType_t::ST_HEATHAZEMAP && !r_heatHaze->integer )

0 commit comments

Comments
 (0)