i915g: fix warning about void pointer arithmetic
authorBrian Paul <brianp@vmware.com>
Mon, 10 Oct 2011 22:35:22 +0000 (16:35 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 11 Oct 2011 13:40:11 +0000 (07:40 -0600)
src/gallium/drivers/i915/i915_state.c

index a233a04..f018f52 100644 (file)
@@ -384,7 +384,7 @@ i915_prepare_vertex_sampling(struct i915_context *i915,
       if (view) {
          struct pipe_resource *tex = view->texture;
          struct i915_texture *i915_tex = i915_texture(tex);
-         void* addr;
+         ubyte *addr;
 
          /* We're referencing the texture's internal data, so save a
           * reference to it.