Skip to content

Commit

Permalink
Vulkan: fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ec- committed Oct 14, 2023
1 parent f01356d commit 4974a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/renderervk/tr_shader.c
Original file line number Diff line number Diff line change
Expand Up @@ -3207,7 +3207,7 @@ static shader_t *FinishShader( void ) {
if ( fogCollapse ) {
for ( i = 1; i < stage; i++ ) {
const uint32_t blendBits = stages[i].stateBits & GLS_BLEND_BITS;
if ( blendBits == (GLS_SRCBLEND_SRC_ALPHA | GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA) || blendBits == (GLS_SRCBLEND_ONE || GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA) ) {
if ( blendBits == (GLS_SRCBLEND_SRC_ALPHA | GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA) || blendBits == (GLS_SRCBLEND_ONE | GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA) ) {
if ( stages[i].bundle[0].adjustColorsForFog == ACFF_NONE ) {
fogCollapse = qfalse;
break;
Expand Down

0 comments on commit 4974a83

Please sign in to comment.