mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1067311 - Don't crash if a gfxSurfaceDrawable failed to allocate a SourceSurface. r=Bas
This commit is contained in:
parent
76cce7aac2
commit
c40f74b45f
@ -34,6 +34,10 @@ gfxSurfaceDrawable::DrawWithSamplingRect(gfxContext* aContext,
|
||||
const GraphicsFilter& aFilter,
|
||||
gfxFloat aOpacity)
|
||||
{
|
||||
if (!mSourceSurface) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// When drawing with CLAMP we can expand the sampling rect to the nearest pixel
|
||||
// without changing the result.
|
||||
gfxRect samplingRect = aSamplingRect;
|
||||
|
Loading…
Reference in New Issue
Block a user