diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index f928805dd..f39de4a17 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -276,10 +276,10 @@ void Layer::setGeometry( void Layer::setPerFrameData(const sp& hw, HWComposer::HWCLayerInterface& layer) { - const sp& buffer(mActiveBuffer); + LayerBaseClient::setPerFrameData(hw, layer); // NOTE: buffer can be NULL if the client never drew into this // layer yet, or if we ran out of memory - layer.setBuffer(buffer); + layer.setBuffer(mActiveBuffer); } void Layer::setAcquireFence(const sp& hw,