Commit 824cd8be authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

GLSL: Fix duplicate condition

Change-Id: Ibb48b79e1c9bd3488a4c02776b6b180ba8525bc6
Reviewed-by: default avatarhjk <>
parent 4ad6cc49
......@@ -205,7 +205,7 @@ bool Semantic::visit(LiteralExpressionAST *ast)
_expr.type = _engine->uintType();
else if (ast->value->endsWith(QLatin1String("lf")) || ast->value->endsWith(QLatin1String("LF")))
_expr.type = _engine->doubleType();
else if (ast->value->endsWith(QLatin1Char('f')) || ast->value->endsWith(QLatin1Char('f')) || ast->value->contains(QLatin1Char('.')))
else if (ast->value->endsWith(QLatin1Char('f')) || ast->value->endsWith(QLatin1Char('F')) || ast->value->contains(QLatin1Char('.')))
_expr.type = _engine->floatType();
_expr.type = _engine->intType();
Supports Markdown
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