diff --git a/gfx/layers/d3d10/CanvasLayerD3D10.cpp b/gfx/layers/d3d10/CanvasLayerD3D10.cpp index b27d03b3e77f..72625be50f40 100644 --- a/gfx/layers/d3d10/CanvasLayerD3D10.cpp +++ b/gfx/layers/d3d10/CanvasLayerD3D10.cpp @@ -63,10 +63,6 @@ CanvasLayerD3D10::Initialize(const Data& aData) factory = SurfaceFactory_ANGLEShareHandle::Create(mGLContext, device(), screen->Caps()); - } else { - factory = new SurfaceFactory_GLTexture(mGLContext, - nullptr, - screen->Caps()); } }