summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d12/render-d3d12.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/d3d12/render-d3d12.cpp')
-rw-r--r--tools/gfx/d3d12/render-d3d12.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp
index 1e73caf44..67c31158b 100644
--- a/tools/gfx/d3d12/render-d3d12.cpp
+++ b/tools/gfx/d3d12/render-d3d12.cpp
@@ -7027,7 +7027,7 @@ void ResourceCommandEncoderImpl::copyTextureToBuffer(
}
assert(dstRowStride % D3D12_TEXTURE_DATA_PITCH_ALIGNMENT == 0);
- footprint.Footprint.RowPitch = dstRowStride;
+ footprint.Footprint.RowPitch = (UINT)dstRowStride;
auto bufferSize =
footprint.Footprint.RowPitch * footprint.Footprint.Height * footprint.Footprint.Depth;