Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index c4ce75c6c0f881e96701a8f92a132c6338be6cd9..fc1897526cde8679dab48cd323db81362c829fda 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -3231,7 +3231,8 @@ |
// skip over ambient lights; they don't cast shadows |
// lights that have shadow maps do not need updating (because lights are immutable) |
- if (fLights->light(i).getShadowMap() != nullptr) { |
+ if (SkLights::Light::kAmbient_LightType == fLights->light(i).type() || |
+ fLights->light(i).getShadowMap() != nullptr) { |
continue; |
} |