Fixed build warning

This commit is contained in:
Sam Lantinga
2023-10-10 12:37:38 -07:00
parent bf72704bfd
commit 2d62c65a75

View File

@@ -1707,7 +1707,7 @@ static int D3D12_UpdateTextureInternal(D3D12_RenderData *rendererData, ID3D12Res
src = (const Uint8 *)pixels;
dst = textureMemory;
length = RowLength;
length = (UINT)RowLength;
if (length == (UINT)pitch && length == RowPitch) {
SDL_memcpy(dst, src, (size_t)length * NumRows);
} else {