OSDN Git Service

Shadow: Fix the crash in spot shadow
authorztenghui <ztenghui@google.com>
Wed, 12 Nov 2014 18:56:15 +0000 (10:56 -0800)
committerztenghui <ztenghui@google.com>
Wed, 12 Nov 2014 20:58:08 +0000 (12:58 -0800)
commit3932063bc75dc1e4efc2c428ca208d2e2290164d
tree19ed4e4667c55661c4e7bd301cc2f8deca2c5a51
parentf4d2c8eebd8113482b48e0b8f83deb4b2f1f9b22
Shadow: Fix the crash in spot shadow

Fix the crash from searching for closest umbra vertex by initialized the
starting index correctly.

Fix another potential crash related to ray intersection by introducing epsilon.

b/18315089

Change-Id: I9ac9a781a885701a8388714d44f79a1d905e5d33
libs/hwui/SpotShadow.cpp