diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-05-19 18:22:32 +0300 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-05-19 18:09:22 +0200 |
commit | 824cd8be5e38db6807c34d81924db1dbb6af2451 (patch) | |
tree | c146452ef7feaf08e5e715325a871c8f671e3e7c /src/libs/glsl | |
parent | 4ad6cc494e271859a504af0161329d37beace8fe (diff) |
GLSL: Fix duplicate condition
Change-Id: Ibb48b79e1c9bd3488a4c02776b6b180ba8525bc6
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/libs/glsl')
-rw-r--r-- | src/libs/glsl/glslsemantic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/glsl/glslsemantic.cpp b/src/libs/glsl/glslsemantic.cpp index 63b1959b24..dbcbcfd879 100644 --- a/src/libs/glsl/glslsemantic.cpp +++ b/src/libs/glsl/glslsemantic.cpp @@ -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(); else _expr.type = _engine->intType(); |