From 20a17e42d7fc9fe65aabe612fe1e513c3103d121 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 21 Jan 2004 16:08:43 +0000 Subject: Remove dd_function_table::BlendFunc. All drivers now use dd_function_table:BlendFuncSeparate. If a driver does not actually support EXT_blend_func_separate, it can assume that the RGB and alpha blend functions are the same. --- src/mesa/drivers/dri/r128/r128_state.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/mesa/drivers/dri/r128/r128_state.c') diff --git a/src/mesa/drivers/dri/r128/r128_state.c b/src/mesa/drivers/dri/r128/r128_state.c index 110a16a831..0be7b1bfa8 100644 --- a/src/mesa/drivers/dri/r128/r128_state.c +++ b/src/mesa/drivers/dri/r128/r128_state.c @@ -211,14 +211,6 @@ static void r128DDBlendEquation( GLcontext *ctx, GLenum mode ) rmesa->new_state |= R128_NEW_ALPHA; } -static void r128DDBlendFunc( GLcontext *ctx, GLenum sfactor, GLenum dfactor ) -{ - r128ContextPtr rmesa = R128_CONTEXT(ctx); - - FLUSH_BATCH( rmesa ); - rmesa->new_state |= R128_NEW_ALPHA; -} - static void r128DDBlendFuncSeparate( GLcontext *ctx, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorA, GLenum dfactorA ) @@ -1196,7 +1188,6 @@ void r128DDInitStateFuncs( GLcontext *ctx ) ctx->Driver.ColorMask = r128DDColorMask; ctx->Driver.AlphaFunc = r128DDAlphaFunc; ctx->Driver.BlendEquation = r128DDBlendEquation; - ctx->Driver.BlendFunc = r128DDBlendFunc; ctx->Driver.BlendFuncSeparate = r128DDBlendFuncSeparate; ctx->Driver.ClearDepth = r128DDClearDepth; ctx->Driver.CullFace = r128DDCullFace; -- cgit v1.2.3