Use correct stencil values with non-add blending.

Otherwise, we get the min/max/etc. value instead.
This commit is contained in:
Unknown W. Brackets committed 2014-08-04 19:16:10 -07:00
1 parent 60eaefa6ad
commit 8d6a5fd694
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -388,9 +388,9 @@ void TransformDrawEngine::ApplyBlendState() {
}
if (gl_extensions.EXT_blend_minmax || gl_extensions.GLES3) {
glstate.blendEquation.set(eqLookup[blendFuncEq]);
glstate.blendEquationSeparate.set(eqLookup[blendFuncEq], GL_FUNC_ADD);
} else {
glstate.blendEquation.set(eqLookupNoMinMax[blendFuncEq]);
glstate.blendEquationSeparate.set(eqLookupNoMinMax[blendFuncEq], GL_FUNC_ADD);
}
}