summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_context.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-12-10 16:30:24 +1100
committerBen Skeggs <skeggsb@gmail.com>2007-12-10 16:30:24 +1100
commit9d651164d8a5e4efaa668771235d2c1b88f17140 (patch)
treef33a5c1e91abd371b05a373c4ad2b9c609823c66 /src/mesa/pipe/draw/draw_context.c
parent3b2598c70bce098ea8c43ff37862bcce1663514b (diff)
parent63e2ab83f6f3955c230bf71662136b34ff46dfe2 (diff)
Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1
Diffstat (limited to 'src/mesa/pipe/draw/draw_context.c')
-rw-r--r--src/mesa/pipe/draw/draw_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c
index 6792a06a4e..33727e6547 100644
--- a/src/mesa/pipe/draw/draw_context.c
+++ b/src/mesa/pipe/draw/draw_context.c
@@ -102,7 +102,8 @@ void draw_destroy( struct draw_context *draw )
draw->pipeline.cull->destroy( draw->pipeline.cull );
draw->pipeline.feedback->destroy( draw->pipeline.feedback );
draw->pipeline.validate->destroy( draw->pipeline.validate );
- draw->pipeline.rasterize->destroy( draw->pipeline.rasterize );
+ if (draw->pipeline.rasterize)
+ draw->pipeline.rasterize->destroy( draw->pipeline.rasterize );
FREE( draw->vcache.vertex[0] ); /* Frees all the vertices. */
FREE( draw );
}