mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1240177 - fix SourceSurfaceSkia::DrawTargetWillChange deepCopyTo usage. r=mattwoodrow, a=ritu
This commit is contained in:
parent
40a46c1c2e
commit
7373e542f6
@ -135,7 +135,7 @@ SourceSurfaceSkia::DrawTargetWillChange()
|
||||
|
||||
// First try a deep copy to avoid a readback from the GPU.
|
||||
// If that fails, try the CPU copy.
|
||||
if (!mBitmap.deepCopyTo(&mBitmap) ||
|
||||
if (!mBitmap.deepCopyTo(&mBitmap) &&
|
||||
!mBitmap.copyTo(&mBitmap)) {
|
||||
mBitmap.reset();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user