mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 448243. When nsSVGFilterInstance needs to create a dummy input image, create one of the right size. r=jwatt,sr=mats
This commit is contained in:
parent
4e18b0296a
commit
6dbbdf56bd
@ -479,8 +479,7 @@ nsSVGFilterInstance::Render(gfxASurface** aOutput)
|
||||
if (!input->mImage.mImage) {
|
||||
// This image data is not really going to be used, but we'd better
|
||||
// have an image object here so the filter primitive doesn't die.
|
||||
input->mImage.mImage =
|
||||
new gfxImageSurface(gfxIntSize(1, 1), gfxASurface::ImageFormatARGB32);
|
||||
input->mImage.mImage = CreateImage();
|
||||
if (!input->mImage.mImage)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user