Skip to content

Commit

Permalink
Fixed|DGL: Alpha testing with zero limit value
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 1, 2017
1 parent 3f8a495 commit b4ed9d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -90,7 +90,7 @@ void main()
}

// Alpha test.
if (out_FragColor.a < uAlphaLimit) {
if (out_FragColor.a <= uAlphaLimit) {
discard;
}

Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/gl/dgl_draw.cpp
Expand Up @@ -319,7 +319,7 @@ struct DGLDrawState
(DGL_GetInteger(DGL_TEXTURE1)? 0x2 : 0);
gl->uTexMode = DGL_GetInteger(DGL_MODULATE_TEXTURE);
gl->uTexModeColor = DGL_ModulationColor();
gl->uAlphaLimit = (glState.alphaTest()? glState.alphaLimit() : 0.f);
gl->uAlphaLimit = (glState.alphaTest()? glState.alphaLimit() : -1.f);
DGL_FogParams(gl->uFogRange, gl->uFogColor);

glState.apply();
Expand Down

0 comments on commit b4ed9d0

Please sign in to comment.