summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-03-16 09:12:21 +0100
committerMichal Krol <[email protected]>2009-03-16 09:13:29 +0100
commit9ba52e12688d6f677c2241729776e6bf10737d4b (patch)
tree90ed5d9c00a12f3587133b5f2800cba7c6b21267 /src/mesa/shader
parent877aaad06dbaab3beadd4fe6da2b934bf035002c (diff)
mesa: Silence compiler warnings.
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/arbprogparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index cd6289deb58..a4d0fc3efc8 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -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;
}