We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06debb3 commit fe2d91dCopy full SHA for fe2d91d
Libraries/D3DX12/d3dx12.h
@@ -2013,11 +2013,11 @@ inline void MemcpySubresource(
2013
for (UINT z = 0; z < NumSlices; ++z)
2014
{
2015
auto pDestSlice = static_cast<BYTE*>(pDest->pData) + pDest->SlicePitch * z;
2016
- auto pSrcSlice = (static_cast<const BYTE*>(pResourceData) + pSrc->Offset) + pSrc->DepthPitch * LONG_PTR(z);
+ auto pSrcSlice = (static_cast<const BYTE*>(pResourceData) + pSrc->Offset) + pSrc->DepthPitch * ULONG_PTR(z);
2017
for (UINT y = 0; y < NumRows; ++y)
2018
2019
memcpy(pDestSlice + pDest->RowPitch * y,
2020
- pSrcSlice + pSrc->RowPitch * LONG_PTR(y),
+ pSrcSlice + pSrc->RowPitch * ULONG_PTR(y),
2021
RowSizeInBytes);
2022
}
2023
0 commit comments