mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1062492. Only use DIBTextureClient with cairo drawing. r=bas
We don't want DIBTextureClient unless we're going to be using cairo for drawing.
This commit is contained in:
parent
187d4058df
commit
046fb41321
@ -291,7 +291,8 @@ TextureClient::CreateForDrawing(ISurfaceAllocator* aAllocator,
|
||||
}
|
||||
|
||||
if (!texture && aFormat == SurfaceFormat::B8G8R8X8 &&
|
||||
aAllocator->IsSameProcess()) {
|
||||
aAllocator->IsSameProcess() &&
|
||||
aMoz2DBackend == gfx::BackendType::CAIRO) {
|
||||
texture = new DIBTextureClient(aFormat, aTextureFlags);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user