mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
mesa: Silence compiler warnings.
This commit is contained in:
parent
877aaad06d
commit
9ba52e1268
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue