diff options
author | Brian Paul <[email protected]> | 2010-11-02 11:49:10 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-11-02 11:50:37 -0600 |
commit | 9fbf744389cc13e96324086a1a94afbac933e6ea (patch) | |
tree | 3d15a3057ed33e06b0e6e9f1fb4e9ccb6222173b /src/gallium/drivers | |
parent | 223568fbcd2f4ec295d932f5d71fe4b18bb279d3 (diff) |
llvmpipe: assign context's frag shader pointer before using it
The call to draw_bind_fragment_shader() was using the old fragment
shader. This bug would have really only effected the draw module's
use of the fragment shader in the wide point stage.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index e4495e33d09..1b3c32f040f 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -1062,11 +1062,11 @@ llvmpipe_bind_fs_state(struct pipe_context *pipe, void *fs) draw_flush(llvmpipe->draw); + llvmpipe->fs = fs; + draw_bind_fragment_shader(llvmpipe->draw, (llvmpipe->fs ? llvmpipe->fs->draw_data : NULL)); - llvmpipe->fs = fs; - llvmpipe->dirty |= LP_NEW_FS; } |