From b37a084357dd08573b86d6d8c5ba43d65bdc1bd7 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 2 Feb 2002 21:40:33 +0000 Subject: Converted line drawing over to new span code, pb no longer used. Big clean-up of line drawing code. Removed many obsolete span processing functions. --- src/mesa/swrast/s_context.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/mesa/swrast/s_context.c') diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index b9b7a87f977..e10f8a3bb3d 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.28 2002/02/02 17:24:11 brianp Exp $ */ +/* $Id: s_context.c,v 1.29 2002/02/02 21:40:33 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -31,7 +31,7 @@ #include "mtypes.h" #include "mem.h" -#include "s_pb.h" +#include "swrast.h" #include "s_points.h" #include "s_lines.h" #include "s_triangle.h" @@ -467,12 +467,6 @@ _swrast_CreateContext( GLcontext *ctx ) if (!swrast) return GL_FALSE; - swrast->PB = _mesa_alloc_pb(); - if (!swrast->PB) { - FREE(swrast); - return GL_FALSE; - } - swrast->NewState = ~0; swrast->choose_point = _swrast_choose_point; @@ -513,7 +507,6 @@ _swrast_DestroyContext( GLcontext *ctx ) fprintf(stderr, "_swrast_DestroyContext\n"); } - FREE( swrast->PB ); FREE( swrast ); ctx->swrast_context = 0; @@ -561,3 +554,10 @@ _swrast_print_vertex( GLcontext *ctx, const SWvertex *v ) fprintf(stderr, "\n"); } } + + +void +_swrast_flush( GLcontext *ctx ) +{ + /* no-op */ +} -- cgit v1.2.3