Bug 756606. Fix an assert in the d3d11 compositor. r=bas

This commit is contained in:
Nicholas Cameron 2013-07-05 09:46:34 +12:00
parent 3a03c241e5
commit 8bdc76e167

View File

@ -299,7 +299,8 @@ TextureHostShmemD3D11::UpdateImpl(const SurfaceDescriptor& aImage,
nsIntRegion *aRegion,
nsIntPoint *aOffset)
{
MOZ_ASSERT(aImage.type() == SurfaceDescriptor::TShmem);
MOZ_ASSERT(aImage.type() == SurfaceDescriptor::TShmem ||
aImage.type() == SurfaceDescriptor::TMemoryImage);
AutoOpenSurface openSurf(OPEN_READ_ONLY, aImage);