projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa5b9c0
)
vbo: If MapBufferRange fails, try MapBuffer instead.
author
Corbin Simpson
<MostAwesomeDude@gmail.com>
Thu, 2 Jul 2009 23:31:24 +0000
(16:31 -0700)
committer
Corbin Simpson
<MostAwesomeDude@gmail.com>
Thu, 2 Jul 2009 23:32:59 +0000
(16:32 -0700)
Fixes segfaults with radeon winsys.
(Probably libdrm_radeon doing something that it shouldn't.)
src/mesa/vbo/vbo_exec_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_exec_draw.c
b/src/mesa/vbo/vbo_exec_draw.c
index 5442a409ad486132a12ab685f8151f6df81e8b4e..bfe9ef0a483550345247b89ac026219dd5f3ffa8 100644
(file)
--- a/
src/mesa/vbo/vbo_exec_draw.c
+++ b/
src/mesa/vbo/vbo_exec_draw.c
@@
-327,9
+327,10
@@
vbo_exec_vtx_map( struct vbo_exec_context *exec )
0, VBO_VERT_BUFFER_SIZE,
accessRange,
exec->vtx.bufferobj);
- else
+ if (!exec->vtx.buffer_map)
exec->vtx.buffer_map =
(GLfloat *)ctx->Driver.MapBuffer(ctx, target, access, exec->vtx.bufferobj);
+ assert(exec->vtx.buffer_map);
exec->vtx.buffer_ptr = exec->vtx.buffer_map;
}