From 5d70b5d10b30ffb715f54f870df6e6eb04acdf45 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Tue, 11 Oct 2011 14:22:32 +0200 Subject: [PATCH] d3d1x/dxgi: fix initialization of pipe_box for Present copy --- src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp index 32817ecb29f..5f270cdfa71 100644 --- a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp +++ b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp @@ -1212,10 +1212,10 @@ struct GalliumDXGISwapChain : public GalliumDXGIObjectwidth0 && blit_h == src->height0) { pipe_box box; - box.x = box.y = box.z; + box.x = box.y = box.z = 0; box.width = blit_w; box.height = blit_h; - box.z = 1; + box.depth = 1; pipe->resource_copy_region(pipe, dst, 0, rect.left, rect.top, 0, src, 0, &box); } else -- 2.11.0