mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
add switch defaults to silence warnings
This commit is contained in:
parent
db40aec48c
commit
e6804945b3
1 changed files with 6 additions and 0 deletions
|
|
@ -726,6 +726,9 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[],
|
|||
case STATE_LOCAL:
|
||||
COPY_4V(value, ctx->FragmentProgram.Current->Base.LocalParams[idx]);
|
||||
break;
|
||||
default:
|
||||
_mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()");
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
@ -744,6 +747,9 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[],
|
|||
case STATE_LOCAL:
|
||||
COPY_4V(value, ctx->VertexProgram.Current->Base.LocalParams[idx]);
|
||||
break;
|
||||
default:
|
||||
_mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()");
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue