projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8f9580
)
added null ptr check in draw_destroy() for rasterizer stage
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 10 Dec 2007 03:45:20 +0000
(20:45 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Mon, 10 Dec 2007 03:45:20 +0000
(20:45 -0700)
src/mesa/pipe/draw/draw_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/draw/draw_context.c
b/src/mesa/pipe/draw/draw_context.c
index 6792a06a4e2651edfb161c4eb9f5a61eeef560b0..33727e6547cb519b577dba060bdcd128b90988b5 100644
(file)
--- 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 );
}