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/gamma/gamma_state.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/mesa/drivers/dri/gamma/gamma_state.c') diff --git a/src/mesa/drivers/dri/gamma/gamma_state.c b/src/mesa/drivers/dri/gamma/gamma_state.c index 8a76720678..519c707a5a 100644 --- a/src/mesa/drivers/dri/gamma/gamma_state.c +++ b/src/mesa/drivers/dri/gamma/gamma_state.c @@ -186,15 +186,6 @@ static void gammaDDBlendEquation( GLcontext *ctx, GLenum mode ) gmesa->new_state |= GAMMA_NEW_ALPHA; } -static void gammaDDBlendFunc( GLcontext *ctx, GLenum sfactor, GLenum dfactor ) -{ - gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); - - FLUSH_BATCH( gmesa ); - - gmesa->new_state |= GAMMA_NEW_ALPHA; -} - static void gammaDDBlendFuncSeparate( GLcontext *ctx, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorA, GLenum dfactorA ) @@ -1699,7 +1690,6 @@ void gammaDDInitStateFuncs( GLcontext *ctx ) ctx->Driver.AlphaFunc = gammaDDAlphaFunc; ctx->Driver.BlendEquation = gammaDDBlendEquation; - ctx->Driver.BlendFunc = gammaDDBlendFunc; ctx->Driver.BlendFuncSeparate = gammaDDBlendFuncSeparate; ctx->Driver.ClearDepth = gammaDDClearDepth; ctx->Driver.CullFace = gammaDDCullFace; -- cgit v1.2.3