nir/lower_tex_projector: Don't use designated initializers
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Apr 2015 04:04:42 +0000 (21:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Apr 2015 18:49:39 +0000 (11:49 -0700)
These don't work in MSVC or in older versions of GCC

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89899
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
src/glsl/nir/nir_lower_tex_projector.c

index 6327b23f6a504e6ad542d681f671c7b363668fbf..6b0e9c340a98437c962a4cee305fcb673044a51e 100644 (file)
@@ -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],