glsl: allow glsl_type::sampler_index() with images
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -300,7 +300,7 @@ glsl_type::sampler_index() const
|
||||
{
|
||||
const glsl_type *const t = (this->is_array()) ? this->fields.array : this;
|
||||
|
||||
assert(t->is_sampler());
|
||||
assert(t->is_sampler() || t->is_image());
|
||||
|
||||
switch (t->sampler_dimensionality) {
|
||||
case GLSL_SAMPLER_DIM_1D:
|
||||
|
||||
Reference in New Issue
Block a user