mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 05:30:11 +01:00
added null ptr check in draw_destroy() for rasterizer stage
This commit is contained in:
parent
f8f9580a2a
commit
04e88f469c
1 changed files with 2 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue