diff --git a/gfx/thebes/gfxContext.cpp b/gfx/thebes/gfxContext.cpp index ab9030eb210a..8663382ce323 100644 --- a/gfx/thebes/gfxContext.cpp +++ b/gfx/thebes/gfxContext.cpp @@ -244,7 +244,8 @@ TemporaryRef gfxContext::GetPath() void gfxContext::SetPath(Path* path) { - MOZ_ASSERT(path->GetBackendType() == mDT->GetBackendType()); + MOZ_ASSERT(path->GetBackendType() == mDT->GetBackendType() || + (mDT->GetBackendType() == BackendType::DIRECT2D1_1 && path->GetBackendType() == BackendType::DIRECT2D)); mPath = path; mPathBuilder = nullptr; mPathIsRect = false;