projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
877aaad
)
mesa: Silence compiler warnings.
author
Michal Krol
<michal@vmware.com>
Mon, 16 Mar 2009 08:12:21 +0000
(09:12 +0100)
committer
Michal Krol
<michal@vmware.com>
Mon, 16 Mar 2009 08:13:29 +0000
(09:13 +0100)
src/mesa/shader/arbprogparse.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/arbprogparse.c
b/src/mesa/shader/arbprogparse.c
index cd6289deb58e453bad4c973931670bdbb6b86d3b..a4d0fc3efc85e6a7123671a450744c01c1577651 100644
(file)
--- 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;
}