summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/sampler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/program/sampler.cpp')
-rw-r--r--src/mesa/program/sampler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/sampler.cpp b/src/mesa/program/sampler.cpp
index 9b941273092..e6532be84d3 100644
--- a/src/mesa/program/sampler.cpp
+++ b/src/mesa/program/sampler.cpp
@@ -111,7 +111,7 @@ _mesa_get_sampler_uniform_value(class ir_dereference *sampler,
{
get_sampler_name getname(sampler, shader_program);
- GLuint shader = _mesa_program_target_to_index(prog->Target);
+ GLuint shader = _mesa_program_enum_to_shader_stage(prog->Target);
sampler->accept(&getname);