draw: Remove redundant draw_geometry_shader_delete().
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 7 Nov 2012 14:19:55 +0000 (14:19 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 9 Nov 2012 13:43:19 +0000 (13:43 +0000)
draw_delete_geometry_shader() seems to be the real one.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_gs.c
src/gallium/auxiliary/draw/draw_gs.h

index 0152c1a0cbbea81e13eaa6c675e70eaaad83cd60..60e39520f8ee96273da3d43ab8896ab919250825 100644 (file)
@@ -156,6 +156,8 @@ void draw_bind_geometry_shader(struct draw_context *draw,
 void draw_delete_geometry_shader(struct draw_context *draw,
                                  struct draw_geometry_shader *dgs)
 {
+   FREE(dgs->primitive_lengths);
+   FREE((void*) dgs->state.tokens);
    FREE(dgs);
 }
 
@@ -469,12 +471,6 @@ int draw_geometry_shader_run(struct draw_geometry_shader *shader,
    return shader->emitted_vertices;
 }
 
-void draw_geometry_shader_delete(struct draw_geometry_shader *shader)
-{
-   FREE((void*) shader->state.tokens);
-   FREE(shader);
-}
-
 void draw_geometry_shader_prepare(struct draw_geometry_shader *shader,
                                   struct draw_context *draw)
 {
index 67bc1aa73ffc12a90533e20c305a88ef1f964c34..bfac02c6635490bbd784cb82654bae97900102cd 100644 (file)
@@ -82,8 +82,6 @@ int draw_geometry_shader_run(struct draw_geometry_shader *shader,
 void draw_geometry_shader_prepare(struct draw_geometry_shader *shader,
                                   struct draw_context *draw);
 
-void draw_geometry_shader_delete(struct draw_geometry_shader *shader);
-
 int draw_gs_max_output_vertices(struct draw_geometry_shader *shader,
                                 unsigned pipe_prim);