gallium: call draw_flush() for scissor/stipple state changes
This commit is contained in:
parent
478c14453b
commit
ae9931dad2
|
@ -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…
Reference in New Issue