From 97e91b6c0fd2e4f02cdf03c661cbe7c1f151f265 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Wed, 18 Aug 2021 21:19:22 +0200 Subject: [PATCH] [d3d9] Respect pitch alignment in GetFrontBufferData --- src/d3d9/d3d9_swapchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index 6b80f1c4..a11007b8 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -456,7 +456,7 @@ namespace dxvk { cSubresources = srcSubresourceLayers, cLevelExtent = srcExtent ] (DxvkContext* ctx) { - ctx->copyImageToBuffer(cBuffer, 0, 0, 0, + ctx->copyImageToBuffer(cBuffer, 0, 4, 0, cImage, cSubresources, VkOffset3D { 0, 0, 0 }, cLevelExtent); });