summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-01-30 22:50:35 -0800
committerVinson Lee <[email protected]>2010-01-30 22:50:35 -0800
commitd36e90f580c06d08526aa7b19793ef986a86ca33 (patch)
treed9954d265bd124882d13e421c86ccadddeb8c8d2 /src
parentbbdce27649698df82432f8da4dc3740c508d3ed8 (diff)
r300g: Silence uninitialized variable warning.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r300/r300_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 95b7cb5fa49..38636dc8e44 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -142,7 +142,7 @@ static void r300_emit_draw_arrays_immediate(struct r300_context *r300,
/* Stride to the same attrib in the next vertex in the vertex buffer,
* in dwords. */
- unsigned stride[PIPE_MAX_ATTRIBS];
+ unsigned stride[PIPE_MAX_ATTRIBS] = {0};
/* Mapped vertex buffers. */
uint32_t* map[PIPE_MAX_ATTRIBS] = {0};