projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0c3b49
)
mesa: fix offset problem with interleaved arrays
author
Alan Hourihane
<alanh@vmware.com>
Tue, 3 Feb 2009 20:07:42 +0000
(20:07 +0000)
committer
Alan Hourihane
<alanh@vmware.com>
Tue, 3 Feb 2009 20:08:47 +0000
(20:08 +0000)
src/mesa/state_tracker/st_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_draw.c
b/src/mesa/state_tracker/st_draw.c
index 630ad2bcdf91e845597fd914752ebcfb607ad657..942f913ea21e7f49c7508c4affc4c639f47fcbae 100644
(file)
--- 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;