i915g: silence a const pointer warning
authorBrian Paul <brianp@vmware.com>
Sat, 4 Aug 2012 14:30:15 +0000 (08:30 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 4 Aug 2012 14:38:11 +0000 (08:38 -0600)
src/gallium/drivers/i915/i915_state.c

index f4b5d6f37b759e40b8c61180c452a5b4f7535dd7..c5ec0c6c076325676b2f4305fabaa6bd72acb0fe 100644 (file)
@@ -677,7 +677,7 @@ static void i915_set_constant_buffer(struct pipe_context *pipe,
       return;
 
    if (cb && cb->user_buffer) {
-      buf = i915_user_buffer_create(pipe->screen, cb->user_buffer,
+      buf = i915_user_buffer_create(pipe->screen, (void *) cb->user_buffer,
                                     cb->buffer_size,
                                     PIPE_BIND_CONSTANT_BUFFER);
    }