diff options
author | Ian Romanick <[email protected]> | 2004-01-21 16:08:43 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2004-01-21 16:08:43 +0000 |
commit | 20a17e42d7fc9fe65aabe612fe1e513c3103d121 (patch) | |
tree | ace6f8746d47c9a1f3f397dceebc6ce58e045c0a /src/mesa/drivers/dri/r200 | |
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/r200')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_state.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_state.c b/src/mesa/drivers/dri/r200/r200_state.c index f9501fd62b3..37da564986d 100644 --- a/src/mesa/drivers/dri/r200/r200_state.c +++ b/src/mesa/drivers/dri/r200/r200_state.c @@ -144,7 +144,9 @@ static void r200BlendEquation( GLcontext *ctx, GLenum mode ) } } -static void r200BlendFunc( GLcontext *ctx, GLenum sfactor, GLenum dfactor ) +static void r200BlendFuncSeparate( GLcontext *ctx, + GLenum sfactorRGB, GLenum dfactorRGB, + GLenum sfactorA, GLenum dfactorA ) { r200ContextPtr rmesa = R200_CONTEXT(ctx); GLuint b = rmesa->hw.ctx.cmd[CTX_RB3D_BLENDCNTL] & @@ -251,13 +253,6 @@ static void r200BlendFunc( GLcontext *ctx, GLenum sfactor, GLenum dfactor ) rmesa->hw.ctx.cmd[CTX_RB3D_BLENDCNTL] = b; } -static void r200BlendFuncSeparate( GLcontext *ctx, - GLenum sfactorRGB, GLenum dfactorRGB, - GLenum sfactorA, GLenum dfactorA ) -{ - r200BlendFunc( ctx, sfactorRGB, dfactorRGB ); -} - /* ============================================================= * Depth testing @@ -2156,7 +2151,6 @@ void r200InitStateFuncs( struct dd_function_table *functions ) functions->AlphaFunc = r200AlphaFunc; functions->BlendEquation = r200BlendEquation; - functions->BlendFunc = r200BlendFunc; functions->BlendFuncSeparate = r200BlendFuncSeparate; functions->ClearColor = r200ClearColor; functions->ClearDepth = NULL; |