We need to compile a blend function when alphatest is enabled.
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
sizeof(compileState.blendState));
if (compileState.blendState.blendEnable == false &&
sizeof(compileState.blendState));
if (compileState.blendState.blendEnable == false &&
- compileState.blendState.logicOpEnable == false) {
+ compileState.blendState.logicOpEnable == false &&
+ ctx->depth_stencil->alpha.enabled == 0) {
SwrSetBlendFunc(ctx->swrContext, target, NULL);
continue;
}
SwrSetBlendFunc(ctx->swrContext, target, NULL);
continue;
}