diff options
author | Ian Romanick <idr@us.ibm.com> | 2004-01-21 16:08:43 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2004-01-21 16:08:43 +0000 |
commit | 20a17e42d7fc9fe65aabe612fe1e513c3103d121 (patch) | |
tree | ace6f8746d47c9a1f3f397dceebc6ce58e045c0a /src/mesa/drivers/dri/mga/mgastate.c | |
parent | 4d36f334c9b3ab6b4e6901802e64ee7391a422ef (diff) |
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.
Diffstat (limited to 'src/mesa/drivers/dri/mga/mgastate.c')
-rw-r--r-- | src/mesa/drivers/dri/mga/mgastate.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/mga/mgastate.c b/src/mesa/drivers/dri/mga/mgastate.c index becb08a208..6e039182ae 100644 --- a/src/mesa/drivers/dri/mga/mgastate.c +++ b/src/mesa/drivers/dri/mga/mgastate.c @@ -129,7 +129,9 @@ static void mgaDDBlendEquation(GLcontext *ctx, GLenum mode) updateBlendLogicOp( ctx ); } -static void mgaDDBlendFunc(GLcontext *ctx, GLenum sfactor, GLenum dfactor) +static void mgaDDBlendFuncSeparate( GLcontext *ctx, GLenum sfactorRGB, + GLenum dfactorRGB, GLenum sfactorA, + GLenum dfactorA ) { mgaContextPtr mmesa = MGA_CONTEXT(ctx); GLuint src; @@ -195,13 +197,6 @@ static void mgaDDBlendFunc(GLcontext *ctx, GLenum sfactor, GLenum dfactor) mmesa->hw.blend_func == (AC_src_src_alpha_sat | AC_dst_zero) ); } -static void mgaDDBlendFuncSeparate( GLcontext *ctx, GLenum sfactorRGB, - GLenum dfactorRGB, GLenum sfactorA, - GLenum dfactorA ) -{ - mgaDDBlendFunc( ctx, sfactorRGB, dfactorRGB ); -} - /* ============================================================= * Depth testing */ @@ -1199,7 +1194,6 @@ void mgaDDInitStateFuncs( GLcontext *ctx ) ctx->Driver.LightModelfv = mgaDDLightModelfv; ctx->Driver.AlphaFunc = mgaDDAlphaFunc; ctx->Driver.BlendEquation = mgaDDBlendEquation; - ctx->Driver.BlendFunc = mgaDDBlendFunc; ctx->Driver.BlendFuncSeparate = mgaDDBlendFuncSeparate; ctx->Driver.DepthFunc = mgaDDDepthFunc; ctx->Driver.DepthMask = mgaDDDepthMask; |