Bug 767337; remove D3D10_RESOURCE_MISC_GDI_COMPATIBLE flag. r=roc,a=akeybl
authorNicholas Cameron <ncameron@mozilla.com>
Fri, 27 Jul 2012 14:50:30 +1200
changeset 102216 c24fa8d2d008f1d526d4080c33ed5823fe88d550
parent 102215 18158fb2a7439256d251a29fd67a05b4f667b3d3
child 102217 97a20755be4fab4ed8f63c50c4c6c8b76294091a
push id1787
push userncameron@mozilla.com
push dateFri, 27 Jul 2012 02:51:18 +0000
treeherdermozilla-aurora@c24fa8d2d008 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, akeybl
bugs767337
milestone16.0a2
Bug 767337; remove D3D10_RESOURCE_MISC_GDI_COMPATIBLE flag. r=roc,a=akeybl
gfx/layers/d3d10/LayerManagerD3D10.cpp
--- a/gfx/layers/d3d10/LayerManagerD3D10.cpp
+++ b/gfx/layers/d3d10/LayerManagerD3D10.cpp
@@ -447,17 +447,16 @@ LayerManagerD3D10::CreateDrawTarget(cons
        aFormat != FORMAT_B8G8R8X8)) {
     return LayerManager::CreateDrawTarget(aSize, aFormat);
   }
 
   nsRefPtr<ID3D10Texture2D> texture;
   
   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));
 
   if (FAILED(hr)) {
     NS_WARNING("Failed to create new texture for CreateOptimalSurface!");
     return LayerManager::CreateDrawTarget(aSize, aFormat);
   }