Correctly name the lightRadius
b/18282208
Change-Id: I5b6edcb37b710464c6ff0f5c05583bb7da720ff3
diff --git a/libs/hwui/ShadowTessellator.cpp b/libs/hwui/ShadowTessellator.cpp
index ca7f48d..9509c48 100644
--- a/libs/hwui/ShadowTessellator.cpp
+++ b/libs/hwui/ShadowTessellator.cpp
@@ -87,8 +87,8 @@
reverseReceiverTransform.loadInverse(receiverTransform);
reverseReceiverTransform.mapPoint3d(adjustedLightCenter);
- if (CC_UNLIKELY(caches.propertyLightDiameter > 0)) {
- lightRadius = caches.propertyLightDiameter;
+ if (CC_UNLIKELY(caches.propertyLightRadius > 0)) {
+ lightRadius = caches.propertyLightRadius;
}
// Now light and caster are both in local space, we will check whether