summaryrefslogtreecommitdiff
path: root/libs/hwui/SpotShadow.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2014-03-11 17:42:29 -0700
committer Chris Craik <ccraik@google.com> 2014-03-12 11:19:42 -0700
commitb98f2116f5896acb4b221015b22624a3c5d5a7fe (patch)
tree4bf1d02992d5fd3d0b333eb5e042d7337a572667 /libs/hwui/SpotShadow.cpp
parentd84133af441caed8102b2da79cdb6f50673b80cb (diff)
Force shadow casters above the Z=0 plane
Change-Id: Ifee75414829d4bfb3c7aa6219f1f9bcfd50ff0c6
Diffstat (limited to 'libs/hwui/SpotShadow.cpp')
-rw-r--r--libs/hwui/SpotShadow.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/hwui/SpotShadow.cpp b/libs/hwui/SpotShadow.cpp
index 4e52555feff3..8538b295c86e 100644
--- a/libs/hwui/SpotShadow.cpp
+++ b/libs/hwui/SpotShadow.cpp
@@ -548,11 +548,6 @@ void SpotShadow::computeSpotShadow(const Vector3* lightPoly, int lightPolyLength
// Validate input, receiver is always at z = 0 plane.
bool inputPolyPositionValid = true;
for (int i = 0; i < polyLength; i++) {
- if (poly[i].z <= 0.00001) {
- inputPolyPositionValid = false;
- ALOGW("polygon below the surface");
- break;
- }
if (poly[i].z >= lightPoly[0].z) {
inputPolyPositionValid = false;
ALOGW("polygon above the light");