projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf4a518
)
i965g: init pointer to null, avoid segfault
author
Keith Whitwell
<keithw@vmware.com>
Wed, 4 Nov 2009 23:27:30 +0000
(23:27 +0000)
committer
Keith Whitwell
<keithw@vmware.com>
Wed, 4 Nov 2009 23:27:30 +0000
(23:27 +0000)
src/gallium/drivers/i965/brw_draw_upload.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/i965/brw_draw_upload.c
b/src/gallium/drivers/i965/brw_draw_upload.c
index f0b7c741c0a1a2bf709360eb891caf501afbadc5..6e12e8f4b3fd81916335db2553b28eb272f2bc4a 100644
(file)
--- a/
src/gallium/drivers/i965/brw_draw_upload.c
+++ b/
src/gallium/drivers/i965/brw_draw_upload.c
@@
-202,7
+202,7
@@
static int brw_prepare_vertices(struct brw_context *brw)
for (i = 0; i < brw->curr.num_vertex_buffers; i++) {
struct pipe_vertex_buffer *vb = &brw->curr.vertex_buffer[i];
struct brw_winsys_buffer *bo;
- struct pipe_buffer *upload_buf;
+ struct pipe_buffer *upload_buf
= NULL
;
unsigned offset;
if (BRW_DEBUG & DEBUG_VERTS)