projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1034e9
)
galahad: Prevent segfault when passing NULL to set_vertex_buffers.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 5 Nov 2012 11:05:34 +0000
(11:05 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 5 Nov 2012 11:05:34 +0000
(11:05 +0000)
State tracker now passes NULL buffer array to unbind buffers.
src/gallium/drivers/galahad/glhd_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/galahad/glhd_context.c
b/src/gallium/drivers/galahad/glhd_context.c
index ecdfe068f796b5e89d6b569362293ad8cfa9e1eb..53e0b1731949d30fec75179792b88085edbd1ccc 100644
(file)
--- a/
src/gallium/drivers/galahad/glhd_context.c
+++ b/
src/gallium/drivers/galahad/glhd_context.c
@@
-630,7
+630,7
@@
galahad_context_set_vertex_buffers(struct pipe_context *_pipe,
struct pipe_vertex_buffer *buffers = NULL;
unsigned i;
- if (num_buffers) {
+ if (num_buffers
&& _buffers
) {
memcpy(unwrapped_buffers, _buffers, num_buffers * sizeof(*_buffers));
for (i = 0; i < num_buffers; i++)
unwrapped_buffers[i].buffer = galahad_resource_unwrap(_buffers[i].buffer);