summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-04-17 11:31:14 -0600
committerBrian Paul <[email protected]>2008-04-17 11:31:14 -0600
commit211170c192dfac5c2b39a6f34056255712fdfed6 (patch)
tree65648aaf86b2fdd9f9675eb2e5221f9092338a50 /src
parentce454d2192918ae4b2535d0e76c68ebde3c4653f (diff)
gallium: plug in a select_destroy() function (fixes segfault on exit)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_feedback.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_feedback.c b/src/mesa/state_tracker/st_cb_feedback.c
index 5315294c07b..605bfee7434 100644
--- a/src/mesa/state_tracker/st_cb_feedback.c
+++ b/src/mesa/state_tracker/st_cb_feedback.c
@@ -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;