summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/d3d1x/dxgi
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-10-11 14:22:32 +0200
committerChristoph Bumiller <[email protected]>2011-10-21 23:00:37 +0200
commit5d70b5d10b30ffb715f54f870df6e6eb04acdf45 (patch)
treee05191f5b6e21742a6bfb714765fcab7d919c9d4 /src/gallium/state_trackers/d3d1x/dxgi
parentc463dfe4e4999a0d745c31bce9a2a2bbe6a05899 (diff)
d3d1x/dxgi: fix initialization of pipe_box for Present copy
Diffstat (limited to 'src/gallium/state_trackers/d3d1x/dxgi')
-rw-r--r--src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp4
1 files 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 GalliumDXGIObject<IDXGISwapChain, GalliumDX
if(formats_compatible && blit_w == src->width0 && 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