mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1066668: Do not attempt to interop with D2D 1.1 inside D2D 1.0. r=jrmuizel
This commit is contained in:
parent
cf394caa67
commit
60504b34c6
@ -333,13 +333,8 @@ DrawTargetD2D::GetImageForSurface(SourceSurface *aSurface)
|
||||
{
|
||||
RefPtr<ID2D1Image> image;
|
||||
|
||||
if (aSurface->GetType() == SurfaceType::D2D1_1_IMAGE) {
|
||||
image = static_cast<SourceSurfaceD2D1*>(aSurface)->GetImage();
|
||||
static_cast<SourceSurfaceD2D1*>(aSurface)->EnsureIndependent();
|
||||
} else {
|
||||
Rect r(Point(), Size(aSurface->GetSize()));
|
||||
image = GetBitmapForSurface(aSurface, r);
|
||||
}
|
||||
Rect r(Point(), Size(aSurface->GetSize()));
|
||||
image = GetBitmapForSurface(aSurface, r);
|
||||
|
||||
return image;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user