softpipe: fix warning
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 1 May 2008 17:49:07 +0000 (18:49 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 1 May 2008 19:49:44 +0000 (20:49 +0100)
src/gallium/drivers/softpipe/sp_state_fs.c

index 2921066..9e77b7e 100644 (file)
@@ -82,10 +82,9 @@ softpipe_bind_fs_state(struct pipe_context *pipe, void *fs)
 void
 softpipe_delete_fs_state(struct pipe_context *pipe, void *fs)
 {
-   struct softpipe_context *softpipe = softpipe_context(pipe);
    struct sp_fragment_shader *state = fs;
 
-   assert(fs != softpipe->fs);
+   assert(fs != softpipe_context(pipe)->fs);
    
    state->delete( state );
 }