Permalink
Browse files

GPU: Fix typo with wrong type.

No behavior change, just fixes a warning.
  • Loading branch information...
unknownbrackets committed Aug 26, 2018
1 parent e9bc6b1 commit 274b1eaa0e8f8141c382706fd897a48fcdbee595
Showing with 1 addition and 1 deletion.
  1. +1 −1 GPU/Common/GPUStateUtils.cpp
@@ -48,7 +48,7 @@ bool NeedsTestDiscard() {
return true;
if (!gstate.isAlphaBlendEnabled())
return true;
if (gstate.getBlendFuncA() != GE_SRCBLEND_SRCALPHA && gstate.getBlendFuncA() != GE_DSTBLEND_DOUBLESRCALPHA)
if (gstate.getBlendFuncA() != GE_SRCBLEND_SRCALPHA && gstate.getBlendFuncA() != GE_SRCBLEND_DOUBLESRCALPHA)
return true;
// GE_DSTBLEND_DOUBLEINVSRCALPHA is actually inverse double src alpha, and doubling zero is still zero.
if (gstate.getBlendFuncB() != GE_DSTBLEND_INVSRCALPHA && gstate.getBlendFuncB() != GE_DSTBLEND_DOUBLEINVSRCALPHA) {

0 comments on commit 274b1ea

Please sign in to comment.