Revert "glsl2: Put the declaration in the instruction stream before its initializer."
This change causes segfaults in other tests. A fix for both sets of
segfaults is coming.
This reverts commit d4d630b72c
.
This commit is contained in:
@@ -1772,8 +1772,6 @@ ast_declarator_list::hir(exec_list *instructions,
|
||||
}
|
||||
}
|
||||
|
||||
instructions->push_tail(var);
|
||||
|
||||
if (decl->initializer != NULL) {
|
||||
YYLTYPE initializer_loc = decl->initializer->get_location();
|
||||
|
||||
@@ -1920,6 +1918,8 @@ ast_declarator_list::hir(exec_list *instructions,
|
||||
decl->identifier);
|
||||
}
|
||||
|
||||
instructions->push_tail(var);
|
||||
|
||||
/* Add the variable to the symbol table after processing the initializer.
|
||||
* This differs from most C-like languages, but it follows the GLSL
|
||||
* specification. From page 28 (page 34 of the PDF) of the GLSL 1.50
|
||||
|
Reference in New Issue
Block a user