From: Vinson Lee Date: Sun, 13 Dec 2009 06:17:16 +0000 (-0800) Subject: st/mesa: Silence uninitialized variables warnings in st_draw.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa44efb04504fb6f8a1a2ff9d99388d173f7181a;p=mesa.git st/mesa: Silence uninitialized variables warnings in st_draw.c. --- diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index c76bff91819..6f5248cbe57 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)