projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9565e34
)
glsl: update assert to support arrays of arrays
author
Timothy Arceri
<t_arceri@yahoo.com.au>
Sun, 22 Feb 2015 12:35:43 +0000
(23:35 +1100)
committer
Timothy Arceri
<t_arceri@yahoo.com.au>
Sat, 4 Jul 2015 07:12:38 +0000
(17:12 +1000)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/glsl_types.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/glsl_types.cpp
b/src/glsl/glsl_types.cpp
index c6223808bb80ef6507dcbbf2e36c584909fef3b9..281ff51f3e9e05e868659515d25385374359fc9d 100644
(file)
--- a/
src/glsl/glsl_types.cpp
+++ b/
src/glsl/glsl_types.cpp
@@
-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);
}
}