d3d1x/dxgi: fix initialization of pipe_box for Present copy
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 11 Oct 2011 12:22:32 +0000 (14:22 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 21 Oct 2011 21:00:37 +0000 (23:00 +0200)
src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp

index 32817ecb29f53b23d6ffb9865c52990f4a59e779..5f270cdfa716438767c89e43da9380b4cd990f47 100644 (file)
@@ -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