diff options
Diffstat (limited to 'libs/hwui/Layer.cpp')
| -rw-r--r-- | libs/hwui/Layer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp index 458f35b..e16865e 100644 --- a/libs/hwui/Layer.cpp +++ b/libs/hwui/Layer.cpp @@ -90,8 +90,10 @@ void Layer::updateLightPosFromRenderer(const OpenGLRenderer& rootRenderer) { // re-init renderer's light position, based upon last cached location in window Vector3 lightPos = rootRenderer.getLightCenter(); cachedInvTransformInWindow.mapPoint3d(lightPos); - renderer->initLight(lightPos, rootRenderer.getLightRadius(), - rootRenderer.getAmbientShadowAlpha(), rootRenderer.getSpotShadowAlpha()); + renderer->initLight(rootRenderer.getLightRadius(), + rootRenderer.getAmbientShadowAlpha(), + rootRenderer.getSpotShadowAlpha()); + renderer->setLightCenter(lightPos); rendererLightPosDirty = false; } } |
