diff options
Diffstat (limited to 'src/core/SkLight.h')
-rw-r--r-- | src/core/SkLight.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/SkLight.h b/src/core/SkLight.h index 4a6e149c76..d9eb78d112 100644 --- a/src/core/SkLight.h +++ b/src/core/SkLight.h @@ -1,4 +1,3 @@ - /* * Copyright 2015 Google Inc. * @@ -40,9 +39,9 @@ public: LightType type() const { return fType; } const SkColor3f& color() const { return fColor; } - const SkVector3& dir() const { + const SkVector3& dir() const { SkASSERT(kAmbient_LightType != fType); - return fDirection; + return fDirection; } private: |