mesa: fix offset problem with interleaved arrays
authorAlan Hourihane <alanh@vmware.com>
Tue, 3 Feb 2009 20:07:42 +0000 (20:07 +0000)
committerAlan Hourihane <alanh@vmware.com>
Tue, 3 Feb 2009 20:08:47 +0000 (20:08 +0000)
src/mesa/state_tracker/st_draw.c

index 630ad2bcdf91e845597fd914752ebcfb607ad657..942f913ea21e7f49c7508c4affc4c639f47fcbae 100644 (file)
@@ -379,7 +379,7 @@ setup_interleaved_attribs(GLcontext *ctx,
          else {
             vbuffer->buffer = NULL;
             pipe_buffer_reference(pipe->screen, &vbuffer->buffer, stobj->buffer);
-            vbuffer->buffer_offset = (unsigned) arrays[mesaAttr]->Ptr;
+            vbuffer->buffer_offset = (unsigned) low;
          }
          vbuffer->stride = stride; /* in bytes */
          vbuffer->max_index = max_index;