r600g: fix warning: assignment discards qualifiers from pointer target type
authorMarek Olšák <maraeo@gmail.com>
Sun, 19 Jun 2011 17:42:22 +0000 (19:42 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 19 Jun 2011 19:09:18 +0000 (21:09 +0200)
src/gallium/drivers/r600/r600_blit.c

index e858ea212ea4a780fe551d2f37b661283e381c72..6171d285bb99e5edd3f46397297a75e40a0a9528 100644 (file)
@@ -294,7 +294,8 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
 {
        struct r600_resource_texture *rsrc = (struct r600_resource_texture*)src;
        struct texture_orig_info orig_info[2];
-       struct pipe_box sbox, *psbox;
+       struct pipe_box sbox;
+       const struct pipe_box *psbox;
        boolean restore_orig[2];
 
        /* Fallback for buffers. */