glsl/linker: Use constant_initializer instead of constant_value to initialize uniforms
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 8 Oct 2015 21:24:25 +0000 (14:24 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Oct 2015 17:15:13 +0000 (10:15 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
src/glsl/link_uniform_initializers.cpp

index 0918d2af9b8204f6f1c14b270ea940220f83cf88..065257b5a0ea80763d32eb9a3009fcd69751c578 100644 (file)
@@ -326,9 +326,9 @@ link_set_uniform_initializers(struct gl_shader_program *prog,
             } else {
                assert(!"Explicit binding not on a sampler, UBO or atomic.");
             }
-         } else if (var->constant_value) {
+         } else if (var->constant_initializer) {
             linker::set_uniform_initializer(mem_ctx, prog, var->name,
-                                            var->type, var->constant_value,
+                                            var->type, var->constant_initializer,
                                             boolean_true);
          }
       }