Set src/dst alpha to non GL_ZERO in case STENCIL_VALUE_UNIFORM

This commit is contained in:
raven02 2013-12-07 21:11:47 +08:00
parent e7c3c76f6b
commit 60def7baf9

View File

@ -264,8 +264,10 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
case STENCIL_VALUE_ZERO:
glstate.blendFuncSeparate.set(glBlendFuncA, glBlendFuncB, GL_ZERO, GL_ZERO);
break;
// For now, let's err at zero.
case STENCIL_VALUE_UNIFORM:
glstate.blendFuncSeparate.set(glBlendFuncA, glBlendFuncB, glBlendFuncA, glBlendFuncB);
break;
// For now, let's err at zero.
case STENCIL_VALUE_UNKNOWN:
glstate.blendFuncSeparate.set(glBlendFuncA, glBlendFuncB, GL_ZERO, GL_ZERO);
break;