summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp b/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp
index 7a6fe64d80..8cab19ac95 100644
--- a/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp
+++ b/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp
@@ -88,12 +88,12 @@ std::vector<BBoxType> D3DBoundingBox::Read(u32 index, u32 length)
return values;
}
-void D3DBoundingBox::Write(u32 index, const std::vector<BBoxType>& values)
+void D3DBoundingBox::Write(u32 index, std::span<const BBoxType> values)
{
D3D11_BOX box{index * sizeof(BBoxType),
0,
0,
- static_cast<u32>(index + values.size()) * sizeof(BBoxType),
+ static_cast<u32>((index + values.size()) * sizeof(BBoxType)),
1,
1};
D3D::context->UpdateSubresource(m_buffer.Get(), 0, &box, values.data(), 0, 0);