projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
788d9bf
)
tnl: fix regression in bind_indices()
author
Brian Paul
<brianp@vmware.com>
Tue, 30 Aug 2011 15:49:00 +0000
(09:49 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 30 Aug 2011 16:17:53 +0000
(10:17 -0600)
Commit
2ea1ff38164d95f8291ef2e5dfe2cb13936a60f2
caused the regression.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=40413
src/mesa/tnl/t_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_draw.c
b/src/mesa/tnl/t_draw.c
index 283ab6954857a4cc78d9970ccc296718be964ea5..03424d7a4947d01f547a97382fe64e0e2bb2655a 100644
(file)
--- a/
src/mesa/tnl/t_draw.c
+++ b/
src/mesa/tnl/t_draw.c
@@
-372,7
+372,8
@@
static void bind_indices( struct gl_context *ctx,
GL_MAP_READ_BIT, ib->obj);
assert(ib->obj->Pointer);
} else {
- ptr = ib->ptr;
+ /* user-space elements, or buffer already mapped */
+ ptr = ADD_POINTERS(ib->obj->Pointer, ib->ptr);
}
if (ib->type == GL_UNSIGNED_INT && VB->Primitive[0].basevertex == 0) {