summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-06-25 11:52:37 -0600
committerBrian Paul <[email protected]>2009-06-26 13:16:34 -0600
commitac05996b812657bdc04e0ec0d09bd638826f52d6 (patch)
treeb25758f9b57fda9777544582c492103b854f8b05 /src
parent0efd25b502cfd84e401bd29c58baf00ea2f41e96 (diff)
glsl: silence a problem warning
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index 0d72f4e5dc2..0339cac31d0 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -1038,7 +1038,8 @@ slang_substitute(slang_assemble_ctx *A, slang_operation *oper,
GLuint i;
v = _slang_variable_locate(oper->locals, id, GL_TRUE);
if (!v) {
- _mesa_problem(NULL, "var %s not found!\n", (char *) oper->a_id);
+ if (_mesa_strcmp((char *) oper->a_id, "__returnFlag"))
+ _mesa_problem(NULL, "var %s not found!\n", (char *) oper->a_id);
return;
}