From adc1c5f703fcf0cdda787c919668558d92beab7a Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 19 Apr 2013 16:05:00 -0400 Subject: [PATCH] Backed out changeset 4440571ee8fb (bug 805406) because of Windows reftest failures --- gfx/layers/d3d10/LayerManagerD3D10.cpp | 1 + gfx/layers/d3d10/ThebesLayerD3D10.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/gfx/layers/d3d10/LayerManagerD3D10.cpp b/gfx/layers/d3d10/LayerManagerD3D10.cpp index d77306b1e67..4427365c9b8 100644 --- a/gfx/layers/d3d10/LayerManagerD3D10.cpp +++ b/gfx/layers/d3d10/LayerManagerD3D10.cpp @@ -461,6 +461,7 @@ LayerManagerD3D10::CreateOptimalSurface(const gfxIntSize &aSize, CD3D10_TEXTURE2D_DESC desc(DXGI_FORMAT_B8G8R8A8_UNORM, aSize.width, aSize.height, 1, 1); desc.BindFlags = D3D10_BIND_RENDER_TARGET | D3D10_BIND_SHADER_RESOURCE; + desc.MiscFlags = D3D10_RESOURCE_MISC_GDI_COMPATIBLE; HRESULT hr = device()->CreateTexture2D(&desc, NULL, getter_AddRefs(texture)); diff --git a/gfx/layers/d3d10/ThebesLayerD3D10.cpp b/gfx/layers/d3d10/ThebesLayerD3D10.cpp index f3fe7bf84bb..f7cb802f2e1 100644 --- a/gfx/layers/d3d10/ThebesLayerD3D10.cpp +++ b/gfx/layers/d3d10/ThebesLayerD3D10.cpp @@ -459,6 +459,7 @@ ThebesLayerD3D10::CreateNewTextures(const gfxIntSize &aSize, SurfaceMode aMode) CD3D10_TEXTURE2D_DESC desc(DXGI_FORMAT_B8G8R8A8_UNORM, aSize.width, aSize.height, 1, 1); desc.BindFlags = D3D10_BIND_RENDER_TARGET | D3D10_BIND_SHADER_RESOURCE; + desc.MiscFlags = D3D10_RESOURCE_MISC_GDI_COMPATIBLE; HRESULT hr; if (!mTexture) {