gallium: added draw_flush() call in softpipe_bind_sampler_state()
authorBrian <brian.paul@tungstengraphics.com>
Fri, 8 Feb 2008 21:46:47 +0000 (14:46 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 8 Feb 2008 22:13:48 +0000 (15:13 -0700)
src/mesa/pipe/softpipe/sp_state_sampler.c

index 51b4b782873b86b80be1c4b01bb82b38f0250404..291bbc40ad07ee5fdf6efe34baf038e5aa86341d 100644 (file)
@@ -49,6 +49,8 @@ softpipe_bind_sampler_state(struct pipe_context *pipe,
 {
    struct softpipe_context *softpipe = softpipe_context(pipe);
 
+   draw_flush(softpipe->draw);
+
    assert(unit < PIPE_MAX_SAMPLERS);
    softpipe->sampler[unit] = (struct pipe_sampler_state *)sampler;