gallium: plug in a select_destroy() function (fixes segfault on exit)
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 17 Apr 2008 17:31:14 +0000 (11:31 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 17 Apr 2008 17:31:14 +0000 (11:31 -0600)
src/mesa/state_tracker/st_cb_feedback.c

index 5315294c07be69a8c32dfee211abf09efe586471..605bfee7434a3024c8335d4d4f6128dd58cbf86d 100644 (file)
@@ -238,6 +238,12 @@ select_reset_stipple_counter( struct draw_stage *stage )
    /* no-op */
 }
 
+static void
+select_destroy( struct draw_stage *stage )
+{
+   /* no-op */
+}
+
 
 /**
  * Create GL selection mode drawing stage.
@@ -254,6 +260,7 @@ draw_glselect_stage(GLcontext *ctx, struct draw_context *draw)
    fs->stage.tri = select_tri;
    fs->stage.flush = select_flush;
    fs->stage.reset_stipple_counter = select_reset_stipple_counter;
+   fs->stage.destroy = select_destroy;
    fs->ctx = ctx;
 
    return &fs->stage;