Commit 3d492f19 authored by Timothy Arceri's avatar Timothy Arceri

glsl: Allow arrays of arrays as input to vertex shader

Signed-off-by: Timothy Arceri's avatarTimothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Paul Berry's avatarPaul Berry <stereotype441@gmail.com>
parent 3dc932d4
......@@ -3143,8 +3143,9 @@ ast_declarator_list::hir(exec_list *instructions,
* vectors. Vertex shader inputs cannot be arrays or
* structures."
*/
const glsl_type *check_type = var->type->is_array()
? var->type->fields.array : var->type;
const glsl_type *check_type = var->type;
while (check_type->is_array())
check_type = check_type->element_type();
switch (check_type->base_type) {
case GLSL_TYPE_FLOAT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment