mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
gallium: plug in a select_destroy() function (fixes segfault on exit)
This commit is contained in:
parent
ce454d2192
commit
211170c192
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue