From: Brian Paul Date: Sat, 4 Aug 2012 14:30:15 +0000 (-0600) Subject: i915g: silence a const pointer warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5ca29100bd64f47e24ad1bd8ae04f0007021541;p=mesa.git i915g: silence a const pointer warning --- diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c index f4b5d6f37b7..c5ec0c6c076 100644 --- a/src/gallium/drivers/i915/i915_state.c +++ b/src/gallium/drivers/i915/i915_state.c @@ -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); }