diff options
author | Matt Turner <[email protected]> | 2014-08-08 19:46:05 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-08-18 18:35:48 -0700 |
commit | 9e2e7c7dc0ff08a2066435dd519502340955bbd2 (patch) | |
tree | 11865fdb82419c8a2a23a47470766cac5d0f846d /src/glsl/link_uniforms.cpp | |
parent | 6df0fd8fe9ccf5c927797897277343f068420a45 (diff) |
glsl: Use UniformBooleanTrue value for uniform initializers.
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/glsl/link_uniforms.cpp')
-rw-r--r-- | src/glsl/link_uniforms.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index 3251097bc30..ddb20565866 100644 --- a/src/glsl/link_uniforms.cpp +++ b/src/glsl/link_uniforms.cpp @@ -841,7 +841,8 @@ link_set_image_access_qualifiers(struct gl_shader_program *prog) } void -link_assign_uniform_locations(struct gl_shader_program *prog) +link_assign_uniform_locations(struct gl_shader_program *prog, + unsigned int boolean_true) { ralloc_free(prog->UniformStorage); prog->UniformStorage = NULL; @@ -1014,7 +1015,7 @@ link_assign_uniform_locations(struct gl_shader_program *prog) prog->UniformStorage = uniforms; link_set_image_access_qualifiers(prog); - link_set_uniform_initializers(prog); + link_set_uniform_initializers(prog, boolean_true); return; } |