st/nir: fix illegal designated initializer in st_glsl_to_nir.cpp
authorBrian Paul <brianp@vmware.com>
Wed, 11 Sep 2019 05:51:23 +0000 (23:51 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 11 Sep 2019 15:38:07 +0000 (09:38 -0600)
IIRC, designated initializers are not legal C++.
Fixes the MSVC build.

Fixes: 83fd1e58 ("glsl/nir: Add and use a gl_nir_link() function")
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp

index 280a7782170cb597fa484551edd5ef284e2373da..d6a026424474860530b3788335f0ad8396216fab 100644 (file)
@@ -688,7 +688,7 @@ st_link_nir(struct gl_context *ctx,
     */
    if (shader_program->data->spirv) {
       static const gl_nir_linker_options opts = {
-         .fill_parameters = true,
+         true /*fill_parameters */
       };
       if (!gl_nir_link(ctx, shader_program, &opts))
          return GL_FALSE;