glsl: silence a problem warning

This commit is contained in:
Brian Paul
2009-06-25 11:52:37 -06:00
parent 0efd25b502
commit ac05996b81
+2 -1
View File
@@ -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;
}