From: Marek Olšák Date: Tue, 9 Oct 2012 12:34:27 +0000 (+0200) Subject: nv30: fix type conversion warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51872e8bb3a83a6eaa7f3bdc621372fa88efaaf2;p=mesa.git nv30: fix type conversion warning --- diff --git a/src/gallium/drivers/nv30/nv30_state.c b/src/gallium/drivers/nv30/nv30_state.c index 25755ba471d..046ba723dae 100644 --- a/src/gallium/drivers/nv30/nv30_state.c +++ b/src/gallium/drivers/nv30/nv30_state.c @@ -324,7 +324,7 @@ nv30_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index, unsigned size; if (cb && cb->user_buffer) { - buf = nouveau_user_buffer_create(pipe->screen, cb->user_buffer, + buf = nouveau_user_buffer_create(pipe->screen, (void*)cb->user_buffer, cb->buffer_size, PIPE_BIND_CONSTANT_BUFFER); }