Commit 47719783 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Don't skip gl_* symbols.

parent f7d46445
...@@ -187,7 +187,7 @@ bool Semantic::visit(IdentifierExpressionAST *ast) ...@@ -187,7 +187,7 @@ bool Semantic::visit(IdentifierExpressionAST *ast)
if (Symbol *s = _scope->lookup(*ast->name)) { if (Symbol *s = _scope->lookup(*ast->name)) {
_expr.type = s->type(); _expr.type = s->type();
} else { } else {
if (ast->name->startsWith(QLatin1String("gl_")) || ast->name->startsWith(QLatin1String("qgl_"))) { if (ast->name->startsWith(QLatin1String("qgl_"))) {
// ### well, at least for now. // ### well, at least for now.
} else { } else {
_engine->error(ast->lineno, QString("`%1' was not declared in this scope").arg(*ast->name)); _engine->error(ast->lineno, QString("`%1' was not declared in this scope").arg(*ast->name));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment