summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-09-09 14:14:42 -0700
committerIan Romanick <[email protected]>2011-09-19 12:02:20 -0700
commit113e8167de4500ea8b12176a938cbc4753f3a923 (patch)
treef58b3776805554cde05fdcc406af0ced5dc2c895 /src/mesa/main/state.h
parent3538bffa7287ebef5f2dc4d2e4491aaf6e68b09e (diff)
mesa: Remove support for GL_EXT_blend_logic_op
Support is removed for four reasons: 1. The implementation was broken with respect to separate blend equations. The GL_EXT_blend_equation_separate spec says: "If EXT_blend_logic_op and EXT_blend_equation_separate are both supported, the logic op blend equation should be supported separately for RGB and alpha as with the other blend equation modes." But Mesa's implementation of GL_LOGIC_OP specifically forbids this. 2. No hardware supported by Mesa can support separate blend equations involving GL_LOGIC_OP. 3. No applications could be found that use this extension. 4. No other Linux OpenGL drivers support this extension. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Cc: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/state.h')
-rw-r--r--src/mesa/main/state.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/state.h b/src/mesa/main/state.h
index a48c777567f..7ff1c5b59b3 100644
--- a/src/mesa/main/state.h
+++ b/src/mesa/main/state.h
@@ -79,8 +79,7 @@ _mesa_need_secondary_color(const struct gl_context *ctx)
static INLINE GLboolean
_mesa_rgba_logicop_enabled(const struct gl_context *ctx)
{
- return ctx->Color.ColorLogicOpEnabled ||
- (ctx->Color.BlendEnabled && ctx->Color.Blend[0].EquationRGB == GL_LOGIC_OP);
+ return ctx->Color.ColorLogicOpEnabled;
}