diff options
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/nir/nir_lower_tex_projector.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_lower_tex_projector.c b/src/glsl/nir/nir_lower_tex_projector.c index 6327b23f6a5..6b0e9c340a9 100644 --- a/src/glsl/nir/nir_lower_tex_projector.c +++ b/src/glsl/nir/nir_lower_tex_projector.c @@ -109,7 +109,8 @@ nir_lower_tex_projector_block(nir_block *block, void *void_state) /* Now move the later tex sources down the array so that the projector * disappears. */ - nir_src dead = {.is_ssa = false, .ssa = NULL}; + nir_src dead; + memset(&dead, 0, sizeof dead); nir_instr_rewrite_src(&tex->instr, &tex->src[proj_index].src, dead); memmove(&tex->src[proj_index], &tex->src[proj_index + 1], |