I need to add a missing free here, and it seems pointless duplication
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5555>
if (prim_info->count == 0) {
debug_printf("GS/IA didn't emit any vertices!\n");
-
- FREE(vert_info->verts);
- if (free_prim_info) {
- FREE(tes_elts_out);
- FREE(prim_info->primitive_lengths);
- }
- return;
+ goto out;
}
draw_stats_clipper_primitives(draw, prim_info);
emit( fpme->emit, vert_info, prim_info );
}
}
+out:
FREE(vert_info->verts);
if (free_prim_info) {
FREE(tes_elts_out);