llvmpipe: add a cast
authorBrian Paul <brianp@vmware.com>
Tue, 2 Nov 2010 17:53:14 +0000 (11:53 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 2 Nov 2010 17:53:14 +0000 (11:53 -0600)
src/gallium/drivers/llvmpipe/lp_state_fs.c

index 1b3c32f040fba0d7a45dec912fbea43909d027d2..48971510f213d9822b7807c81d062abea18c4c40 100644 (file)
@@ -1062,7 +1062,7 @@ llvmpipe_bind_fs_state(struct pipe_context *pipe, void *fs)
 
    draw_flush(llvmpipe->draw);
 
-   llvmpipe->fs = fs;
+   llvmpipe->fs = (struct lp_fragment_shader *) fs;
 
    draw_bind_fragment_shader(llvmpipe->draw,
                              (llvmpipe->fs ? llvmpipe->fs->draw_data : NULL));