mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1148718 - init TextureSource for current TextureHost when attach. r=nical, r=sotaro
This commit is contained in:
parent
e487f6624c
commit
6556a9dbf8
@ -156,6 +156,12 @@ public:
|
||||
SetLayer(aLayer);
|
||||
mAttached = true;
|
||||
mKeepAttached = aFlags & KEEP_ATTACHED;
|
||||
|
||||
// If we already have a textureHost before, use that in this moment.
|
||||
RefPtr<TextureHost> frontBuffer = GetAsTextureHost();
|
||||
if (frontBuffer) {
|
||||
UseTextureHost(frontBuffer);
|
||||
}
|
||||
}
|
||||
// Detach this compositable host from its layer.
|
||||
// If we are used for async video, then it is not safe to blindly detach since
|
||||
|
Loading…
Reference in New Issue
Block a user