projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b12a31f
)
Fix segfault in _save_OBE_DrawElements() when using VBO and display list (bug 16156)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 30 May 2008 14:53:42 +0000
(08:53 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 30 May 2008 16:08:04 +0000
(10:08 -0600)
This was previously fixed in master by commit
982dcb74fd19b88208d127b8019e2a2af979cac2
by Haihao Xiang.
src/mesa/vbo/vbo_save_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_save_api.c
b/src/mesa/vbo/vbo_save_api.c
index aded73814361e462aac8897bd68b2bf6fde48f71..f62be5c14cf4bb7960354998c52fb164861fa072 100644
(file)
--- a/
src/mesa/vbo/vbo_save_api.c
+++ b/
src/mesa/vbo/vbo_save_api.c
@@
-864,6
+864,9
@@
static void GLAPIENTRY _save_OBE_DrawElements(GLenum mode, GLsizei count, GLenum
_ae_map_vbos( ctx );
+ if (ctx->Array.ElementArrayBufferObj->Name)
+ indices = ADD_POINTERS(ctx->Array.ElementArrayBufferObj->Pointer, indices);
+
vbo_save_NotifyBegin( ctx, mode | VBO_SAVE_PRIM_WEAK );
switch (type) {