summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/opt_structure_splitting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/opt_structure_splitting.cpp b/src/compiler/glsl/opt_structure_splitting.cpp
index 0d18a2f7584..f4c129e6255 100644
--- a/src/compiler/glsl/opt_structure_splitting.cpp
+++ b/src/compiler/glsl/opt_structure_splitting.cpp
@@ -351,7 +351,7 @@ do_structure_splitting(exec_list *instructions)
entry->components[i] =
new(entry->mem_ctx) ir_variable(type->fields.structure[i].type,
name,
- ir_var_temporary);
+ (ir_variable_mode) entry->var->data.mode);
entry->var->insert_before(entry->components[i]);
}