mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
glsl: init limit=0 to silence uninitialized var warning
Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
d65e3c082a
commit
f91f6ef739
1 changed files with 1 additions and 1 deletions
|
|
@ -1922,7 +1922,7 @@ validate_binding_qualifier(struct _mesa_glsl_parse_state *state,
|
|||
* with an array of size N, all elements of the array from binding
|
||||
* through binding + N - 1 must be within this range."
|
||||
*/
|
||||
unsigned limit;
|
||||
unsigned limit = 0;
|
||||
switch (state->target) {
|
||||
case vertex_shader:
|
||||
limit = ctx->Const.VertexProgram.MaxTextureImageUnits;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue