diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp index 462a63e..5a32a97 100644 --- a/libhwcomposer/hwc.cpp +++ b/libhwcomposer/hwc.cpp @@ -112,6 +112,10 @@ static int hwc_prepare(hwc_composer_device_t *dev, hwc_layer_list_t* list) ctx->overlayInUse = false; ctx->mOverlay->setState(ovutils::OV_CLOSED); } + } else { + ctx->overlayInUse = false; + ctx->mOverlay->setState(ovutils::OV_CLOSED); + ctx->qbuf->unlockAll(); } return 0;