mesa: Silence compiler warnings.
authorMichal Krol <michal@vmware.com>
Mon, 16 Mar 2009 08:12:21 +0000 (09:12 +0100)
committerMichal Krol <michal@vmware.com>
Mon, 16 Mar 2009 08:13:29 +0000 (09:13 +0100)
src/mesa/shader/arbprogparse.c

index cd6289d..a4d0fc3 100644 (file)
@@ -969,6 +969,7 @@ parse_output_color_num (GLcontext * ctx, const GLubyte ** inst,
    GLint i = parse_integer (inst, Program);
 
    if ((i < 0) || (i >= (int)ctx->Const.MaxDrawBuffers)) {
+      *color = 0;
       program_error(ctx, Program->Position, "Invalid draw buffer index");
       return 1;
    }