From ea1241af80cbe4116c1e9764430da94bd85d6a44 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Mon, 17 Jul 2017 18:27:21 -0400 Subject: [PATCH] D3D12: Handle MapReadAsync offset --- src/backend/d3d12/BufferD3D12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/d3d12/BufferD3D12.cpp b/src/backend/d3d12/BufferD3D12.cpp index 05f2f3b31a..f7baa54af8 100644 --- a/src/backend/d3d12/BufferD3D12.cpp +++ b/src/backend/d3d12/BufferD3D12.cpp @@ -145,7 +145,7 @@ namespace d3d12 { ASSERT_SUCCESS(resource->Map(0, &readRange, reinterpret_cast(&data))); MapReadRequestTracker* tracker = ToBackend(GetDevice())->GetMapReadRequestTracker(); - tracker->Track(this, serial, data); + tracker->Track(this, serial, data + start); } void Buffer::UnmapImpl() {