From: Christoph Bumiller Date: Tue, 11 Oct 2011 12:22:32 +0000 (+0200) Subject: d3d1x/dxgi: fix initialization of pipe_box for Present copy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d70b5d10b30ffb715f54f870df6e6eb04acdf45;p=mesa.git d3d1x/dxgi: fix initialization of pipe_box for Present copy --- 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