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/linker.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/linker.cpp')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index cb2a6c7892a..d6f9c2d91ff 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -1201,8 +1201,8 @@ interstage_cross_validate_uniform_blocks(struct gl_shader_program *prog, } for (unsigned int j = 0; j < sh_num_blocks; j++) { - int index = link_cross_validate_uniform_block(prog, &blks, num_blks, - sh_blks[j]); + int index = link_cross_validate_uniform_block(prog->data, &blks, + num_blks, sh_blks[j]); if (index == -1) { linker_error(prog, "buffer block `%s' has mismatching " @@ -3610,7 +3610,7 @@ add_program_resource(struct gl_shader_program *prog, return true; prog->data->ProgramResourceList = - reralloc(prog, + reralloc(prog->data, prog->data->ProgramResourceList, gl_program_resource, prog->data->NumProgramResourceList + 1); |