Browse Source

Set the var_type for arrays to error_type until it's implemented.

"Fixes" segfaults in array tests.
tags/mesa-7.9-rc1
Eric Anholt 16 years ago
parent
commit
8518e75d28
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      ast_to_hir.cpp

+ 1
- 0
ast_to_hir.cpp View File

@@ -947,6 +947,7 @@ ast_declarator_list::hir(exec_list *instructions,
/* FINISHME: Handle array declarations. Note that this requires
* FINISHME: complete handling of constant expressions.
*/
var_type = glsl_type::error_type;

/* FINISHME: Reject delcarations of multidimensional arrays. */
} else {

Loading…
Cancel
Save