Mesa (master): mesa: Silence compiler warnings.
MichaŠKról
michal at kemper.freedesktop.org
Mon Mar 16 01:13:34 PDT 2009
Module: Mesa
Branch: master
Commit: 9ba52e12688d6f677c2241729776e6bf10737d4b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ba52e12688d6f677c2241729776e6bf10737d4b
Author: Michal Krol <michal at vmware.com>
Date: Mon Mar 16 09:12:21 2009 +0100
mesa: Silence compiler warnings.
---
src/mesa/shader/arbprogparse.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index cd6289d..a4d0fc3 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;
}
More information about the mesa-commit
mailing list