mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
glsl: update assert to support arrays of arrays
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
9565e34528
commit
7ecb11c81c
1 changed files with 2 additions and 1 deletions
|
|
@ -1086,7 +1086,8 @@ glsl_type::std140_base_alignment(bool row_major) const
|
|||
this->fields.array->is_matrix()) {
|
||||
return MAX2(this->fields.array->std140_base_alignment(row_major), 16);
|
||||
} else {
|
||||
assert(this->fields.array->is_record());
|
||||
assert(this->fields.array->is_record() ||
|
||||
this->fields.array->is_array());
|
||||
return this->fields.array->std140_base_alignment(row_major);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue