diff options
author | Roland Scheidegger <[email protected]> | 2018-07-04 03:44:50 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2018-07-05 09:27:05 +0200 |
commit | 620626a371a9d2fa69d7b73cfaf3e816dffd6f04 (patch) | |
tree | 5d2c26e334b3919eae8352be7ac216ba4a99e143 /src/compiler/glsl | |
parent | 806a42fc47ba1bbc36ca61bd57908443c382d8a7 (diff) |
nir/linker: fix msvc build
Empty initializer braces aren't valid c (it's a gnu extension, and
it's valid in c++).
Hopefully fixes appveyor / msvc build...
Fixes 6677e131b806b10754adcb7cf3f427a7fcc2aa09
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r-- | src/compiler/glsl/gl_nir_link_atomics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/gl_nir_link_atomics.c b/src/compiler/glsl/gl_nir_link_atomics.c index da6f5107c9a..887ac1b9d0f 100644 --- a/src/compiler/glsl/gl_nir_link_atomics.c +++ b/src/compiler/glsl/gl_nir_link_atomics.c @@ -175,7 +175,7 @@ gl_nir_link_assign_atomic_counter_resources(struct gl_context *ctx, struct gl_shader_program *prog) { unsigned num_buffers; - unsigned num_atomic_buffers[MESA_SHADER_STAGES] = { }; + unsigned num_atomic_buffers[MESA_SHADER_STAGES] = {0}; struct active_atomic_buffer *abs = find_active_atomic_counters(ctx, prog, &num_buffers); |