Bug 898028 - Fix crash @ gfxUtils::ConvertBGRAtoRGBA(). r=jgilbert

This commit is contained in:
Chris Kitching 2013-07-29 16:24:57 -04:00
parent dbb2d0d4e4
commit 5ac5ecb22d

View File

@ -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();