Permalink
Browse files

Fix depth mask if blending a diffuseMap instead of a colorMap.

  • Loading branch information...
1 parent 55b9eeb commit da260d4d70d8e6ee4ef8665bb95e1ed7b00ed3bb @gimhael gimhael committed Mar 6, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 daemon/src/engine/renderer/tr_shader.cpp
@@ -1950,7 +1950,9 @@ static bool ParseStage( shaderStage_t *stage, const char **text )
}
// clear depth mask for blended surfaces
- if ( !depthMaskExplicit && stage->type == stageType_t::ST_COLORMAP )
+ if ( !depthMaskExplicit &&
+ (stage->type == stageType_t::ST_COLORMAP ||
+ stage->type == stageType_t::ST_DIFFUSEMAP) )
{
depthMaskBits = 0;
}

0 comments on commit da260d4

Please sign in to comment.