mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1025824 - Fix mHwcLayerMap handling r=sushil
This commit is contained in:
parent
147c58e672
commit
cdbdc19ddc
@ -683,7 +683,7 @@ HwcComposer2D::Commit()
|
||||
displays[HWC_DISPLAY_PRIMARY] = mList;
|
||||
|
||||
for (uint32_t j=0; j < (mList->numHwLayers - 1); j++) {
|
||||
if (!mHwcLayerMap[j] ||
|
||||
if (mHwcLayerMap.IsEmpty() ||
|
||||
(mList->hwLayers[j].compositionType == HWC_FRAMEBUFFER)) {
|
||||
continue;
|
||||
}
|
||||
@ -793,6 +793,7 @@ HwcComposer2D::TryRender(Layer* aRoot,
|
||||
gfxMatrix(),
|
||||
aGLWorldTransform))
|
||||
{
|
||||
mHwcLayerMap.Clear();
|
||||
LOGD("Render aborted. Nothing was drawn to the screen");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user