nv30: fix type conversion warning
authorMarek Olšák <maraeo@gmail.com>
Tue, 9 Oct 2012 12:34:27 +0000 (14:34 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 9 Oct 2012 12:34:27 +0000 (14:34 +0200)
src/gallium/drivers/nv30/nv30_state.c

index 25755ba471d9abe69182730ca1aef4a8b6304bf8..046ba723daee8a308befd65c9b6e415c872c2251 100644 (file)
@@ -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);
    }