Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user