mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
gallium: disable the selection/feedback draw module's options for wide lines, points, etc.
Disable paths that would convert points/lines to tris as that upsets selection, feedback, rastpos.
This commit is contained in:
parent
070a744622
commit
7f56c8ea5f
1 changed files with 8 additions and 0 deletions
|
|
@ -95,6 +95,14 @@ st_create_context_priv( GLcontext *ctx, struct pipe_context *pipe )
|
|||
|
||||
st->draw = draw_create(); /* for selection/feedback */
|
||||
|
||||
/* Disable draw options that might convert points/lines to tris, etc.
|
||||
* as that would foul-up feedback/selection mode.
|
||||
*/
|
||||
draw_wide_line_threshold(st->draw, 1000.0f);
|
||||
draw_wide_point_threshold(st->draw, 1000.0f);
|
||||
draw_enable_line_stipple(st->draw, FALSE);
|
||||
draw_enable_point_sprites(st->draw, FALSE);
|
||||
|
||||
st->dirty.mesa = ~0;
|
||||
st->dirty.st = ~0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue