diff options
author | Brian Paul <[email protected]> | 2006-09-29 02:12:07 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-09-29 02:12:07 +0000 |
commit | d92da49bae30be612efb6ea20bdfda232ee3d01d (patch) | |
tree | 03f8d51102add3def17270cf4460ddf720e662c3 /src/mesa/swrast/s_context.c | |
parent | 0ce6a2935c85118ca20f5dfc5911a39c481dc791 (diff) |
more changes for runtime renderbuffer depths
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r-- | src/mesa/swrast/s_context.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index bb096be75a1..950561b5fca 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -291,6 +291,7 @@ _swrast_validate_triangle( GLcontext *ctx, _swrast_validate_derived( ctx ); swrast->choose_triangle( ctx ); + ASSERT(swrast->Triangle); if (ctx->Texture._EnabledUnits == 0 && NEED_SECONDARY_COLOR(ctx) @@ -314,6 +315,7 @@ _swrast_validate_line( GLcontext *ctx, const SWvertex *v0, const SWvertex *v1 ) _swrast_validate_derived( ctx ); swrast->choose_line( ctx ); + ASSERT(swrast->Line); if (ctx->Texture._EnabledUnits == 0 && NEED_SECONDARY_COLOR(ctx) @@ -355,13 +357,13 @@ _swrast_validate_point( GLcontext *ctx, const SWvertex *v0 ) */ static void _ASMAPI _swrast_validate_blend_func(GLcontext *ctx, GLuint n, const GLubyte mask[], - GLchan src[][4], CONST GLchan dst[][4], + GLvoid *src, const GLvoid *dst, GLenum chanType ) { SWcontext *swrast = SWRAST_CONTEXT(ctx); - _swrast_validate_derived( ctx ); - _swrast_choose_blend_func( ctx ); + _swrast_validate_derived( ctx ); /* why is this needed? */ + _swrast_choose_blend_func( ctx, chanType ); swrast->BlendFunc( ctx, n, mask, src, dst, chanType ); } |