Mesa (mesa_7_6_branch): st/mesa: Silence uninitialized variables warnings in st_draw.c.

Vinson Lee vlee at kemper.freedesktop.org
Sat Dec 12 22:18:18 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: aa44efb04504fb6f8a1a2ff9d99388d173f7181a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa44efb04504fb6f8a1a2ff9d99388d173f7181a

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Dec 12 22:17:16 2009 -0800

st/mesa: Silence uninitialized variables warnings in st_draw.c.

---

 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 c76bff9..6f5248c 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)



More information about the mesa-commit mailing list