Bug 1057716 - d3d11: Properly copy the background. r=bas, a=sledru
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Tue, 26 Aug 2014 14:33:03 -0400
changeset 216651 9eb4dff42df0
parent 216644 5638b907b505
child 216652 764591e4e7f3
push id3861
push userryanvm@gmail.com
push date2014-09-03 15:49 +0000
treeherdermozilla-beta@4815ff146c57 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas, sledru
bugs1057716
milestone33.0
Bug 1057716 - d3d11: Properly copy the background. r=bas, a=sledru Previously we were copying an empty box.
gfx/layers/d3d11/CompositorD3D11.cpp
--- a/gfx/layers/d3d11/CompositorD3D11.cpp
+++ b/gfx/layers/d3d11/CompositorD3D11.cpp
@@ -446,17 +446,17 @@ CompositorD3D11::CreateRenderTargetFromS
       static_cast<const CompositingRenderTargetD3D11*>(aSource);
 
     D3D11_BOX srcBox;
     srcBox.left = aSourcePoint.x;
     srcBox.top = aSourcePoint.y;
     srcBox.front = 0;
     srcBox.right = aSourcePoint.x + aRect.width;
     srcBox.bottom = aSourcePoint.y + aRect.height;
-    srcBox.back = 0;
+    srcBox.back = 1;
 
     const IntSize& srcSize = sourceD3D11->GetSize();
     MOZ_ASSERT(srcSize.width >= 0 && srcSize.height >= 0,
                "render targets should have nonnegative sizes");
     if (srcBox.right <= static_cast<uint32_t>(srcSize.width) &&
         srcBox.bottom <= static_cast<uint32_t>(srcSize.height)) {
       mContext->CopySubresourceRegion(texture, 0,
                                       0, 0, 0,