mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 911941 - Prevent TextureClients to be shared by several ImageLayers. r=Bas
This commit is contained in:
parent
64da51905b
commit
b14d7014f3
@ -116,6 +116,12 @@ ImageClientSingle::UpdateImage(ImageContainer* aContainer,
|
||||
// fast path: no need to allocate and/or copy image data
|
||||
RefPtr<TextureClient> texture = image->AsSharedImage()->GetTextureClient();
|
||||
|
||||
if (texture->IsSharedWithCompositor()) {
|
||||
// XXX - temporary fix for bug 911941
|
||||
// This will be changed with bug 912907
|
||||
return false;
|
||||
}
|
||||
|
||||
if (mFrontBuffer) {
|
||||
RemoveTextureClient(mFrontBuffer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user