mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-15 07:48:14 +00:00
Fixed build warning
This commit is contained in:
@@ -1707,7 +1707,7 @@ static int D3D12_UpdateTextureInternal(D3D12_RenderData *rendererData, ID3D12Res
|
|||||||
|
|
||||||
src = (const Uint8 *)pixels;
|
src = (const Uint8 *)pixels;
|
||||||
dst = textureMemory;
|
dst = textureMemory;
|
||||||
length = RowLength;
|
length = (UINT)RowLength;
|
||||||
if (length == (UINT)pitch && length == RowPitch) {
|
if (length == (UINT)pitch && length == RowPitch) {
|
||||||
SDL_memcpy(dst, src, (size_t)length * NumRows);
|
SDL_memcpy(dst, src, (size_t)length * NumRows);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user