diff options
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r-- | src/mesa/swrast/s_context.c | 20 | ||||
-rw-r--r-- | src/mesa/swrast/swrast.h | 7 |
2 files changed, 25 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index c80c92798b5..e85741953e7 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -1,4 +1,4 @@ -/* $Id: s_context.c,v 1.37 2002/08/07 00:45:07 brianp Exp $ */ +/* $Id: s_context.c,v 1.38 2002/09/17 15:46:34 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -559,6 +559,24 @@ _swrast_GetDeviceDriverReference( GLcontext *ctx ) return &swrast->Driver; } + +void +_swrast_render_start( GLcontext *ctx ) +{ + SWcontext *swrast = SWRAST_CONTEXT(ctx); + if (swrast->Driver.SpanRenderStart) + swrast->Driver.SpanRenderStart( ctx ); +} + +void +_swrast_render_finish( GLcontext *ctx ) +{ + SWcontext *swrast = SWRAST_CONTEXT(ctx); + if (swrast->Driver.SpanRenderFinish) + swrast->Driver.SpanRenderFinish( ctx ); +} + + #define SWRAST_DEBUG_VERTICES 0 void diff --git a/src/mesa/swrast/swrast.h b/src/mesa/swrast/swrast.h index 493534c4bab..4db055b6fe1 100644 --- a/src/mesa/swrast/swrast.h +++ b/src/mesa/swrast/swrast.h @@ -1,4 +1,4 @@ -/* $Id: swrast.h,v 1.26 2002/08/07 00:45:07 brianp Exp $ */ +/* $Id: swrast.h,v 1.27 2002/09/17 15:46:36 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -302,6 +302,11 @@ _swrast_Quad( GLcontext *ctx, extern void _swrast_flush( GLcontext *ctx ); +extern void +_swrast_render_start( GLcontext *ctx ); + +extern void +_swrast_render_finish( GLcontext *ctx ); /* Tell the software rasterizer about core state changes. */ |