summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/blend.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2018-01-03 11:45:58 -0800
committerIan Romanick <[email protected]>2018-01-26 11:21:46 +0800
commit0aaa27f29187ffb739c7ba2d789b82114f59f054 (patch)
tree9043ee0a749893d3676c354a5a9e391efa187260 /src/mesa/main/blend.c
parentcf0b26ec1250567fe0c5e9cc556806e64e843d19 (diff)
mesa: Pass the translated color logic op dd_function_table::LogicOpcode
And delete the resulting dead code. This has only been compile-tested. v2: sed --in-place -e 's/color_logic_ops/gl_logicop_mode/g' $(grep -lr color_logic_ops src/) suggested by Brian. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/blend.c')
-rw-r--r--src/mesa/main/blend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index 1c3711766ec..6b379f24992 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -905,7 +905,7 @@ logic_op(struct gl_context *ctx, GLenum opcode, bool no_error)
ctx->Color._LogicOp = color_logicop_mapping[opcode & 0x0f];
if (ctx->Driver.LogicOpcode)
- ctx->Driver.LogicOpcode(ctx, opcode);
+ ctx->Driver.LogicOpcode(ctx, ctx->Color._LogicOp);
}