summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915tex/i830_state.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-11-02 17:51:04 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-11-02 17:51:04 +0000
commit7a9c7c1133d5cf17d032c8568e8f040a7c171a72 (patch)
tree080a93c61e25d8003e98de5c87bb3cea744c048b /src/mesa/drivers/dri/i915tex/i830_state.c
parentabc73d9cba655479af493fabd13a488e5f7951eb (diff)
downloadexternal_mesa3d-7a9c7c1133d5cf17d032c8568e8f040a7c171a72.zip
external_mesa3d-7a9c7c1133d5cf17d032c8568e8f040a7c171a72.tar.gz
external_mesa3d-7a9c7c1133d5cf17d032c8568e8f040a7c171a72.tar.bz2
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/i830_state.c')
-rw-r--r--src/mesa/drivers/dri/i915tex/i830_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915tex/i830_state.c b/src/mesa/drivers/dri/i915tex/i830_state.c
index 83d8288..c067336 100644
--- a/src/mesa/drivers/dri/i915tex/i830_state.c
+++ b/src/mesa/drivers/dri/i915tex/i830_state.c
@@ -231,7 +231,7 @@ i830EvalLogicOpBlendState(GLcontext * ctx)
I830_STATECHANGE(i830, I830_UPLOAD_CTX);
- if (ctx->Color._LogicOpEnabled) {
+ if (RGBA_LOGICOP_ENABLED(ctx)) {
i830->state.Ctx[I830_CTXREG_ENABLES_1] &= ~(ENABLE_COLOR_BLEND |
ENABLE_LOGIC_OP_MASK);
i830->state.Ctx[I830_CTXREG_ENABLES_1] |= (DISABLE_COLOR_BLEND |