This handles a situation like:
struct {
layout (r32f) image2D imgs[6];
} s;
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
if (field_type->without_array()->is_image()) {
if (qual->flags.q.explicit_image_format) {
- if (qual->image_base_type != field_type->sampled_type) {
+ if (qual->image_base_type !=
+ field_type->without_array()->sampled_type) {
_mesa_glsl_error(&loc, state, "format qualifier doesn't "
"match the base data type of the image");
}