gallium: call draw_flush() for scissor/stipple state changes

This commit is contained in:
Brian 2008-02-18 18:36:20 -07:00
parent 478c14453b
commit ae9931dad2
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}