Speculative valgrind fix
authorrobertphillips <robertphillips@google.com>
Tue, 25 Aug 2015 16:53:10 +0000 (09:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 25 Aug 2015 16:53:10 +0000 (09:53 -0700)
I wasn't able to repro locally but it seems like it has to be this.

Review URL: https://codereview.chromium.org/1309653003

src/core/SkLightingShader.cpp

index ce5c0dd..3b2e062 100644 (file)
@@ -168,7 +168,7 @@ public:
             fLightDir.fX = 10000.0f;
             fLightColor.fX = 0.0f;
             fAmbientColor.fX = 0.0f;
-            fInvNormRotation.fX = 0.0f;
+            fInvNormRotation.set(0.0f, 0.0f);
         }
 
         void emitCode(EmitArgs& args) override {