summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/link_uniforms.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-09 10:00:09 +1100
committerTimothy Arceri <[email protected]>2017-01-06 11:21:42 +1100
commit937523971f42f37b40badb962e575ecd8258b2d5 (patch)
treef48bafe2f5916336dfcdb63a1bc8ba34cb277003 /src/compiler/glsl/link_uniforms.cpp
parent53a509723ff10ae1494e611de3823f17b7e9f225 (diff)
st/mesa/glsl: set SamplersUsed directly in gl_program
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_uniforms.cpp')
-rw-r--r--src/compiler/glsl/link_uniforms.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp
index f2fc7161f10..8604dba4b07 100644
--- a/src/compiler/glsl/link_uniforms.cpp
+++ b/src/compiler/glsl/link_uniforms.cpp
@@ -1244,7 +1244,8 @@ link_assign_uniform_storage(struct gl_context *ctx,
parcel.set_and_process(var);
}
- prog->_LinkedShaders[i]->active_samplers = parcel.shader_samplers_used;
+ prog->_LinkedShaders[i]->Program->SamplersUsed =
+ parcel.shader_samplers_used;
prog->_LinkedShaders[i]->shadow_samplers = parcel.shader_shadow_samplers;
STATIC_ASSERT(sizeof(prog->_LinkedShaders[i]->SamplerTargets) ==