summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@vmware.com>2009-02-03 20:07:42 +0000
committerAlan Hourihane <alanh@vmware.com>2009-02-03 20:08:47 +0000
commita47965588fdaa75166c48d50974b38fcbfd2a749 (patch)
tree04e3cb718e76257eac9e4e63deb544822a75a747
parente0c3b4970da052308bf7b4e5cbe9186a4b8321db (diff)
mesa: fix offset problem with interleaved arrays
-rw-r--r--src/mesa/state_tracker/st_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index 630ad2bcdf..942f913ea2 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -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;