diff options
author | Alan Hourihane <alanh@vmware.com> | 2009-02-03 20:07:42 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@vmware.com> | 2009-02-03 20:08:47 +0000 |
commit | a47965588fdaa75166c48d50974b38fcbfd2a749 (patch) | |
tree | 04e3cb718e76257eac9e4e63deb544822a75a747 | |
parent | e0c3b4970da052308bf7b4e5cbe9186a4b8321db (diff) |
mesa: fix offset problem with interleaved arrays
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 2 |
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; |