diff options
author | Jose Fonseca <[email protected]> | 2018-10-24 11:33:09 +0100 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2018-10-24 11:37:09 +0100 |
commit | d9a04196d9b3919ed216842510606654eb64222d (patch) | |
tree | 3d5b09cd5daf6cbb1dd3ed19338043089dd5533b | |
parent | d99fda17c8318af96158edc18f7532f049b4304e (diff) |
nir: Fix array initializer.
Empty initializer is not standard C. This fixes MSVC build.
Trivial.
-rw-r--r-- | src/compiler/nir/nir_linking_helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_linking_helpers.c b/src/compiler/nir/nir_linking_helpers.c index ca46a6b71b0..de6f2481def 100644 --- a/src/compiler/nir/nir_linking_helpers.c +++ b/src/compiler/nir/nir_linking_helpers.c @@ -531,7 +531,7 @@ nir_compact_varyings(nir_shader *producer, nir_shader *consumer, void nir_link_xfb_varyings(nir_shader *producer, nir_shader *consumer) { - nir_variable *input_vars[MAX_VARYING] = {}; + nir_variable *input_vars[MAX_VARYING] = { 0 }; nir_foreach_variable(var, &consumer->inputs) { if (var->data.location >= VARYING_SLOT_VAR0 && |