diff options
author | bsalomon <bsalomon@google.com> | 2015-08-06 17:33:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-06 17:33:16 -0700 |
commit | ebc1c10fe1befb4f8025e825d3fb6012c145c593 (patch) | |
tree | 29e3af0a027e62ca15940ea4999e5a1760fece55 /gm | |
parent | 4ab9d5f1bc6d05c49dc765c3de5ade816f4c968e (diff) |
Fix warnings on VS2015 x86_64 build
TBR=bungeman@google.com
Review URL: https://codereview.chromium.org/1276133002
Diffstat (limited to 'gm')
-rw-r--r-- | gm/lightingshader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/lightingshader.cpp b/gm/lightingshader.cpp index 687968abb6..771c0bc2e3 100644 --- a/gm/lightingshader.cpp +++ b/gm/lightingshader.cpp @@ -38,7 +38,7 @@ static SkBitmap make_hemi_normalmap(int texSize) { locY = 0.0f; locZ = 0.0f; } - locZ = sqrt(1.0f - locZ); + locZ = sqrtf(1.0f - locZ); unsigned char r = static_cast<unsigned char>((0.5f * locX + 0.5f) * 255); unsigned char g = static_cast<unsigned char>((-0.5f * locY + 0.5f) * 255); unsigned char b = static_cast<unsigned char>((0.5f * locZ + 0.5f) * 255); |