glsl2: do not use __retval name; two underscores is reserved word according to GLSL...
[mesa.git] / src / glsl / ir_function_inlining.cpp
index fd52d106b1b3bc536ed3febffe53bb7fa2d16c12..874602c84f291f095828c615c0d45baf5dc0dfb9 100644 (file)
@@ -127,7 +127,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
 
    /* Generate storage for the return value. */
    if (this->callee->return_type) {
-      retval = new(ctx) ir_variable(this->callee->return_type, "__retval",
+      retval = new(ctx) ir_variable(this->callee->return_type, "_ret_val",
                                    ir_var_auto);
       next_ir->insert_before(retval);
    }