Set float for gstate.getStencilTestRef() * (1.0f / 255.0f);

This commit is contained in:
raven02 committed 2013-12-15 21:40:14 +08:00
1 parent 1d7cffe805
commit 7f828a6b66
1 file changed
+1 -1
+1 -1
View File
@@ -195,7 +195,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
float constantAlpha = 1.0f;
if (gstate.isStencilTestEnabled() && !CanReplaceAlphaWithStencil()) {
if (gstate.isStencilTestEnabled() == STENCIL_VALUE_UNIFORM) {
constantAlpha = gstate.getStencilTestRef() * (1.0f / 255.0f);
constantAlpha = (float) gstate.getStencilTestRef() * (1.0f / 255.0f);
}
}