summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-04-18 08:41:51 -0600
committerBrian Paul <[email protected]>2010-04-18 08:41:51 -0600
commit27322eeb733ee4b39495ad11a5734cc2bf72c53c (patch)
treebf8bef5d03b7c3fdbdf6cdaa84218d954f59eaca /src/gallium
parentb74f4bc6b8fa68da398c63d9c6cfb67a7f87d628 (diff)
nvfx: fix void * arithmetic warning
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_vbo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c
index 5ffbdfcb2a6..0ebeadc870d 100644
--- a/src/gallium/drivers/nvfx/nvfx_vbo.c
+++ b/src/gallium/drivers/nvfx/nvfx_vbo.c
@@ -124,7 +124,7 @@ nvfx_vbo_static_attrib(struct nvfx_context *nvfx,
void *map;
map = pipe_buffer_map(&nvfx->pipe, vb->buffer, PIPE_TRANSFER_READ, &transfer);
- map += vb->buffer_offset + ve->src_offset;
+ map = (uint8_t *) map + vb->buffer_offset + ve->src_offset;
float *v = map;