summaryrefslogtreecommitdiff
path: root/src/glsl/ir_import_prototypes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/ir_import_prototypes.cpp')
-rw-r--r--src/glsl/ir_import_prototypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_import_prototypes.cpp b/src/glsl/ir_import_prototypes.cpp
index a39b384071..066137e60a 100644
--- a/src/glsl/ir_import_prototypes.cpp
+++ b/src/glsl/ir_import_prototypes.cpp
@@ -59,7 +59,6 @@ public:
this->function = this->symbols->get_function(ir->name);
if (!this->function) {
this->function = new(this->mem_ctx) ir_function(ir->name);
- this->function->is_builtin = ir->is_builtin;
list->push_tail(this->function);
@@ -87,6 +86,7 @@ public:
new(mem_ctx) ir_function_signature(ir->return_type);
copy->is_defined = false;
+ copy->is_builtin = ir->is_builtin;
/* Clone the parameter list, but NOT the body.
*/