summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/blend.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2011-08-30 17:55:26 -0700
committerIan Romanick <ian.d.romanick@intel.com>2011-09-29 10:41:01 -0700
commitb0824bd860f6d4b3ad28fc142c2eebd840ed6173 (patch)
treeec6f962a7a4df50a297bdeec4e8a7f79531aa412 /src/mesa/main/blend.c
parent1d5e49bf05f698374257707e2303b266d2a864da (diff)
downloadexternal_mesa3d-b0824bd860f6d4b3ad28fc142c2eebd840ed6173.zip
external_mesa3d-b0824bd860f6d4b3ad28fc142c2eebd840ed6173.tar.gz
external_mesa3d-b0824bd860f6d4b3ad28fc142c2eebd840ed6173.tar.bz2
mesa: Remove EXT_blend_subtract extension enable flag
All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. This extension was previously not supported on i810, mach64, mga, savage, sis, and tdfx (Voodoo Banshee and Voodoo3). Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/main/blend.c')
-rw-r--r--src/mesa/main/blend.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index 98c14f5..09acdf5 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -289,13 +289,12 @@ legal_blend_equation(const struct gl_context *ctx, GLenum mode)
{
switch (mode) {
case GL_FUNC_ADD:
+ case GL_FUNC_SUBTRACT:
+ case GL_FUNC_REVERSE_SUBTRACT:
return GL_TRUE;
case GL_MIN:
case GL_MAX:
return ctx->Extensions.EXT_blend_minmax;
- case GL_FUNC_SUBTRACT:
- case GL_FUNC_REVERSE_SUBTRACT:
- return ctx->Extensions.EXT_blend_subtract;
default:
return GL_FALSE;
}