diff options
author | Vinson Lee <vlee@vmware.com> | 2009-12-12 22:17:16 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2009-12-12 22:17:16 -0800 |
commit | aa44efb04504fb6f8a1a2ff9d99388d173f7181a (patch) | |
tree | 680699f04313955ac2f7df4d87c46549154ced50 /src/mesa | |
parent | 0aef54ba627c748a43f601228c725f5ba79be002 (diff) |
st/mesa: Silence uninitialized variables warnings in st_draw.c.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index c76bff9181..6f5248cbe5 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -371,7 +371,7 @@ setup_interleaved_attribs(GLcontext *ctx, { struct pipe_context *pipe = ctx->st->pipe; GLuint attr; - const GLubyte *offset0; + const GLubyte *offset0 = NULL; for (attr = 0; attr < vp->num_inputs; attr++) { const GLuint mesaAttr = vp->index_to_input[attr]; @@ -550,7 +550,7 @@ st_draw_vbo(GLcontext *ctx, GLuint attr; struct pipe_vertex_element velements[PIPE_MAX_ATTRIBS]; unsigned num_vbuffers, num_velements; - GLboolean userSpace; + GLboolean userSpace = GL_FALSE; /* Gallium probably doesn't want this in some cases. */ if (!index_bounds_valid) |