diff options
author | Alan Hourihane <[email protected]> | 2009-02-03 20:07:42 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2009-02-03 20:08:47 +0000 |
commit | a47965588fdaa75166c48d50974b38fcbfd2a749 (patch) | |
tree | 04e3cb718e76257eac9e4e63deb544822a75a747 /src/mesa/state_tracker/st_draw.c | |
parent | e0c3b4970da052308bf7b4e5cbe9186a4b8321db (diff) |
mesa: fix offset problem with interleaved arrays
Diffstat (limited to 'src/mesa/state_tracker/st_draw.c')
-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 630ad2bcdf9..942f913ea21 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; |