diff options
author | Brian Paul <[email protected]> | 2006-11-02 17:51:04 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-11-02 17:51:04 +0000 |
commit | 7a9c7c1133d5cf17d032c8568e8f040a7c171a72 (patch) | |
tree | 080a93c61e25d8003e98de5c87bb3cea744c048b /src/mesa/drivers/dri/i915tex/i915_state.c | |
parent | abc73d9cba655479af493fabd13a488e5f7951eb (diff) |
Use RGBA_LOGICOP_ENABLED() instead of ctx->Color._LogicOpEnabled since we often
need to check for this condition before the later field has been computed.
Fixes logicop bug #8860.
Diffstat (limited to 'src/mesa/drivers/dri/i915tex/i915_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i915tex/i915_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915tex/i915_state.c b/src/mesa/drivers/dri/i915tex/i915_state.c index d68801d3f94..2f5a30787ee 100644 --- a/src/mesa/drivers/dri/i915tex/i915_state.c +++ b/src/mesa/drivers/dri/i915tex/i915_state.c @@ -144,7 +144,7 @@ i915EvalLogicOpBlendState(GLcontext * ctx) I915_STATECHANGE(i915, I915_UPLOAD_CTX); - if (ctx->Color._LogicOpEnabled) { + if (RGBA_LOGICOP_ENABLED(ctx)) { i915->state.Ctx[I915_CTXREG_LIS5] |= S5_LOGICOP_ENABLE; i915->state.Ctx[I915_CTXREG_LIS6] &= ~S6_CBUF_BLEND_ENABLE; } |