diff options
author | Jason Ekstrand <[email protected]> | 2016-02-09 13:56:23 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-13 17:22:36 -0800 |
commit | ac089126b9b647f930ee2657aa16ea8e8f6a5dd7 (patch) | |
tree | 23aef91d7692c492db3c06de36a0d5c70d232baf /src/compiler/glsl/ir.cpp | |
parent | 4ed4c1d9210b11ce6faea81455c21531904ea45b (diff) |
glsl/types: Rename sampler_type to sampled_type
It's a bit more descriptive since it is the base type that you get when you
sample from it. Also, the next commit adds a bare "sampler" type and we
need glsl_type::sampler_type available for a public static member.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir.cpp')
-rw-r--r-- | src/compiler/glsl/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp index 5debca32411..c7a2496b6c8 100644 --- a/src/compiler/glsl/ir.cpp +++ b/src/compiler/glsl/ir.cpp @@ -1442,7 +1442,7 @@ ir_texture::set_sampler(ir_dereference *sampler, const glsl_type *type) assert(sampler->type->base_type == GLSL_TYPE_SAMPLER); assert(sampler->type->sampler_dimensionality == GLSL_SAMPLER_DIM_MS); } else { - assert(sampler->type->sampler_type == (int) type->base_type); + assert(sampler->type->sampled_type == (int) type->base_type); if (sampler->type->sampler_shadow) assert(type->vector_elements == 4 || type->vector_elements == 1); else |