summaryrefslogtreecommitdiff
path: root/src/glsl/glsl_types.cpp
diff options
context:
space:
mode:
authorAras Pranckevicius <aras@unity3d.com>2010-08-09 11:17:32 +0300
committerIan Romanick <ian.d.romanick@intel.com>2010-08-09 09:08:03 -0700
commit3adce986c498539d9a5d8db95926e66e1315da03 (patch)
tree349b01cfe3fbee24d8e25335f42a7a023f4ae370 /src/glsl/glsl_types.cpp
parent5023edaf5d037c9b71f1795ac4b890f175507576 (diff)
glsl2: do not use __retval name; two underscores is reserved word according to GLSL spec (and Win7 ATI drivers do complain about that)
Diffstat (limited to 'src/glsl/glsl_types.cpp')
-rw-r--r--src/glsl/glsl_types.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp
index 03f84603b5..9b1bef6cb8 100644
--- a/src/glsl/glsl_types.cpp
+++ b/src/glsl/glsl_types.cpp
@@ -267,11 +267,11 @@ glsl_type::generate_constructor(glsl_symbol_table *symtab) const
}
/* Generate the body of the constructor. The body assigns each of the
- * parameters to a portion of a local variable called __retval that has
- * the same type as the constructor. After initializing __retval,
- * __retval is returned.
+ * parameters to a portion of a local variable called _ret_val that has
+ * the same type as the constructor. After initializing _ret_val,
+ * _ret_val is returned.
*/
- ir_variable *retval = new(ctx) ir_variable(this, "__retval", ir_var_auto);
+ ir_variable *retval = new(ctx) ir_variable(this, "_ret_val", ir_var_auto);
sig->body.push_tail(retval);
for (unsigned i = 0; i < length; i++) {