i915g: Fix MSVC build.
authorVinson Lee <vlee@vmware.com>
Wed, 7 Oct 2009 20:29:23 +0000 (14:29 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 7 Oct 2009 20:29:23 +0000 (14:29 -0600)
src/gallium/drivers/i915/i915_prim_vbuf.c

index 07546c03b2b303e146ab77ba89663164f51094cb..6b832140a87c3e82f159e1410b74960ed9da7343 100644 (file)
@@ -257,7 +257,7 @@ i915_vbuf_render_unmap_vertices(struct vbuf_render *render,
    iws->buffer_write(iws, i915_render->vbo,
                      i915_render->map_used_start + i915_render->vbo_offset,
                      i915_render->map_used_end - i915_render->map_used_start,
-                     i915_render->vbo_ptr + i915_render->map_used_start);
+                     (unsigned char *)i915_render->vbo_ptr + i915_render->map_used_start);
 
 #endif
 }