瀏覽代碼

added null ptr check in draw_destroy() for rasterizer stage

tags/mesa_20090313
Brian 17 年之前
父節點
當前提交
04e88f469c
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      src/mesa/pipe/draw/draw_context.c

+ 2
- 1
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 );
}

Loading…
取消
儲存