소스 검색

Fixed build warning

Sam Lantinga 2 년 전
부모
커밋
2d62c65a75
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/render/direct3d12/SDL_render_d3d12.c

+ 1 - 1
src/render/direct3d12/SDL_render_d3d12.c

@@ -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 {