summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-10-27 16:17:19 +1100
committerTimothy Arceri <[email protected]>2016-11-17 12:52:24 +1100
commit5581f2a8f27cda7a9d239ab655829d9159af5544 (patch)
treecb7a9dea3b8fdeb67dc289ca32fa9093b203152e /src/mesa/main/shaderapi.c
parentba40c8b03cb5250af771c50ff785bd5ec293e3c1 (diff)
mesa/glsl: copy num_abos to gl_program
We should be able to free gl_linked_shader after linking in order to do so we need to switch to getting values from gl_program instead. Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r--src/mesa/main/shaderapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 4d64ae58a98..5db41375006 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -2165,6 +2165,7 @@ _mesa_copy_linked_program_data(const struct gl_shader_program *src,
struct gl_program *dst = dst_sh->Program;
+ dst->info.num_abos = dst_sh->NumAtomicBuffers;
dst->info.num_images = dst_sh->NumImages;
switch (dst_sh->Stage) {