mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 898028 - Fix crash @ gfxUtils::ConvertBGRAtoRGBA(). r=jgilbert
This commit is contained in:
parent
dbb2d0d4e4
commit
5ac5ecb22d
@ -153,8 +153,8 @@ gfxUtils::ConvertBGRAtoRGBA(gfxImageSurface *aSourceSurface,
|
||||
MOZ_ASSERT(aSourceSurface->Stride() == aSourceSurface->Width() * 4,
|
||||
"Source surface stride isn't tightly packed");
|
||||
|
||||
MOZ_ASSERT(aSourceSurface->Format() == gfxASurface::ImageFormatARGB32,
|
||||
"Surfaces must be ARGB32");
|
||||
MOZ_ASSERT(aSourceSurface->Format() == gfxASurface::ImageFormatARGB32 || aSourceSurface->Format() == gfxASurface::ImageFormatRGB24,
|
||||
"Surfaces must be ARGB32 or RGB24");
|
||||
|
||||
uint8_t *src = aSourceSurface->Data();
|
||||
uint8_t *dst = aDestSurface->Data();
|
||||
|
Loading…
Reference in New Issue
Block a user