diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2018-01-16 16:37:58 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-17 17:46:02 +0000 |
commit | 9d8abc5816d9e5533e7943c52fa6856177f482b2 (patch) | |
tree | a56b3c9e0530e5154d92132c048313b350c25d46 /src/sksl/SkSLIRGenerator.cpp | |
parent | 2ac5868f4a695b30777c7c57ffd493fed0fa597b (diff) |
fixed type error in RTAdjust application
Bug: skia:
Change-Id: I94ba5853812659920bba781ae983fc9fbb647f9c
Reviewed-on: https://skia-review.googlesource.com/95082
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/SkSLIRGenerator.cpp')
-rw-r--r-- | src/sksl/SkSLIRGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sksl/SkSLIRGenerator.cpp b/src/sksl/SkSLIRGenerator.cpp index 3d7e84329d..999df56851 100644 --- a/src/sksl/SkSLIRGenerator.cpp +++ b/src/sksl/SkSLIRGenerator.cpp @@ -629,7 +629,7 @@ std::unique_ptr<Statement> IRGenerator::getNormalizeSkPositionCode() { children.push_back(OP(OP(SWIZZLE(POS, 1), Token::STAR, SWIZZLE(ADJUST, 2)), Token::PLUS, OP(SWIZZLE(POS, 3), Token::STAR, SWIZZLE(ADJUST, 3)))); - children.push_back(std::unique_ptr<Expression>(new IntLiteral(fContext, -1, 0))); + children.push_back(std::unique_ptr<Expression>(new FloatLiteral(fContext, -1, 0.0))); children.push_back(SWIZZLE(POS, 3)); std::unique_ptr<Expression> result = OP(POS, Token::EQ, std::unique_ptr<Expression>(new Constructor(-1, |