mesa: treat Color._AdvancedBlendMode as enum
[mesa.git] / src / mesa / state_tracker / st_atom_blend.c
index 35c99b9f089575a2842484b3a0bb5cce0daed09c..1c53e34588f7271b30e8ef6c31fe407dd6e97421 100644 (file)
@@ -217,7 +217,8 @@ st_update_blend( struct st_context *st )
       blend->logicop_enable = 1;
       blend->logicop_func = ctx->Color._LogicOp;
    }
-   else if (ctx->Color.BlendEnabled && !ctx->Color._AdvancedBlendMode) {
+   else if (ctx->Color.BlendEnabled &&
+            ctx->Color._AdvancedBlendMode == BLEND_NONE) {
       /* blending enabled */
       for (i = 0, j = 0; i < num_state; i++) {
          if (!(ctx->Color.BlendEnabled & (1 << i)) ||