Module: Mesa
Branch: master
Commit: 27322eeb733ee4b39495ad11a5734cc2bf72c53c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=27322eeb733ee4b39495ad11a5734cc2bf72c53c

Author: Brian Paul <[email protected]>
Date:   Sun Apr 18 08:41:51 2010 -0600

nvfx: fix void * arithmetic warning

---

 src/gallium/drivers/nvfx/nvfx_vbo.c |    2 +-
 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 5ffbdfc..0ebeadc 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;
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to