summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-09 20:45:20 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-12-09 20:45:20 -0700
commit04e88f469cf6c338ba04640738865b59e160c3d4 (patch)
tree75cf0ad8e71d379fcfa6bf22a6833bc78e167d67 /src/mesa
parentf8f9580a2a1c89af1dc0e169b62440053d9d7e81 (diff)
added null ptr check in draw_destroy() for rasterizer stage
Diffstat (limited to 'src/mesa')
-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 );
}