diff options
author | Timothy Arceri <[email protected]> | 2017-11-08 11:34:10 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-11-09 12:07:48 +1100 |
commit | 9c33533586476693a197b7179552d140d54f23f2 (patch) | |
tree | ad0f9eb55ef91e918f3f9cbc6efa42a99cd2d481 /src/compiler/glsl/link_uniforms.cpp | |
parent | cf05bb506a075c9e3b8a3c374b928ff0367c49b2 (diff) |
glsl: use the correct parent when allocating program data members
Cc: "17.2 17.3" <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_uniforms.cpp')
-rw-r--r-- | src/compiler/glsl/link_uniforms.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp index 3da015eb7fd..30c48b94fce 100644 --- a/src/compiler/glsl/link_uniforms.cpp +++ b/src/compiler/glsl/link_uniforms.cpp @@ -1333,7 +1333,7 @@ link_assign_uniform_storage(struct gl_context *ctx, union gl_constant_value *data; if (prog->data->UniformStorage == NULL) { - prog->data->UniformStorage = rzalloc_array(prog, + prog->data->UniformStorage = rzalloc_array(prog->data, struct gl_uniform_storage, prog->data->NumUniformStorage); data = rzalloc_array(prog->data->UniformStorage, |