Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel)

This commit is contained in:
David Anderson
2015-10-01 23:06:43 -07:00
parent aa1b6377d3
commit f8eaddc178
8 changed files with 38 additions and 14 deletions

View File

@@ -74,7 +74,7 @@ BasicCompositor::BasicCompositor(nsIWidget *aWidget)
SetBackend(LayersBackend::LAYERS_BASIC);
mMaxTextureSize =
Factory::GetMaxSurfaceSize(gfxPlatform::GetPlatform()->GetContentBackend());
Factory::GetMaxSurfaceSize(gfxPlatform::GetPlatform()->GetContentBackendFor(LayersBackend::LAYERS_BASIC));
}
BasicCompositor::~BasicCompositor()