mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 944207 - Reset the number of HWC layers on failures before HWC prepare. r=dwilson
This commit is contained in:
parent
2940d90868
commit
de7dd419b8
@ -451,6 +451,7 @@ HwcComposer2D::TryHwComposition()
|
||||
|
||||
if (!(fbsurface && fbsurface->lastHandle)) {
|
||||
LOGD("H/W Composition failed. FBSurface not initialized.");
|
||||
mList->numHwLayers = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -459,6 +460,7 @@ HwcComposer2D::TryHwComposition()
|
||||
if (idx >= mMaxLayerCount) {
|
||||
if (!ReallocLayerList() || idx >= mMaxLayerCount) {
|
||||
LOGE("TryHwComposition failed! Could not add FB layer");
|
||||
mList->numHwLayers = 0;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user