diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-07-18 19:15:40 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-07-18 19:15:40 +0000 |
commit | 813e56db511e783fcf1ad7bcfd40645451802bd7 (patch) | |
tree | 8d0bfd6572239b29fb3fe53be71ec923600ed652 /src/mesa/main/blend.c | |
parent | f81b1dbe374fe446f6ef676e70a72952ffb47d4e (diff) |
Compute ctx->Color._LogicOpEnabled in one place instead of four places!
Diffstat (limited to 'src/mesa/main/blend.c')
-rw-r--r-- | src/mesa/main/blend.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c index aebc70421a..bf886af9e8 100644 --- a/src/mesa/main/blend.c +++ b/src/mesa/main/blend.c @@ -5,9 +5,9 @@ /* * Mesa 3-D graphics library - * Version: 6.1 + * Version: 6.5.1 * - * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -275,13 +275,6 @@ _mesa_BlendEquation( GLenum mode ) ctx->Color.BlendEquationRGB = mode; ctx->Color.BlendEquationA = mode; - /* This is needed to support 1.1's RGB logic ops AND - * 1.0's blending logicops. - */ - ctx->Color._LogicOpEnabled = (ctx->Color.ColorLogicOpEnabled || - (ctx->Color.BlendEnabled && - mode == GL_LOGIC_OP)); - if (ctx->Driver.BlendEquationSeparate) (*ctx->Driver.BlendEquationSeparate)( ctx, mode, mode ); } @@ -323,12 +316,6 @@ _mesa_BlendEquationSeparateEXT( GLenum modeRGB, GLenum modeA ) ctx->Color.BlendEquationRGB = modeRGB; ctx->Color.BlendEquationA = modeA; - /* This is needed to support 1.1's RGB logic ops AND - * 1.0's blending logicops. This test is simplified over glBlendEquation - * because modeRGB cannot be GL_LOGIC_OP. - */ - ctx->Color._LogicOpEnabled = (ctx->Color.ColorLogicOpEnabled); - if (ctx->Driver.BlendEquationSeparate) (*ctx->Driver.BlendEquationSeparate)( ctx, modeRGB, modeA ); } |