mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 09:58:05 +02:00
gallium: call draw_flush() for scissor/stipple state changes
This commit is contained in:
parent
478c14453b
commit
ae9931dad2
1 changed files with 4 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ void softpipe_set_scissor_state( struct pipe_context *pipe,
|
|||
{
|
||||
struct softpipe_context *softpipe = softpipe_context(pipe);
|
||||
|
||||
draw_flush(softpipe->draw);
|
||||
|
||||
memcpy( &softpipe->scissor, scissor, sizeof(*scissor) );
|
||||
softpipe->dirty |= SP_NEW_SCISSOR;
|
||||
}
|
||||
|
|
@ -78,6 +80,8 @@ void softpipe_set_polygon_stipple( struct pipe_context *pipe,
|
|||
{
|
||||
struct softpipe_context *softpipe = softpipe_context(pipe);
|
||||
|
||||
draw_flush(softpipe->draw);
|
||||
|
||||
memcpy( &softpipe->poly_stipple, stipple, sizeof(*stipple) );
|
||||
softpipe->dirty |= SP_NEW_STIPPLE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue