Fixed Visual Studio warning 4389: '==': signed/unsigned mismatch
This commit is contained in:
@@ -1723,7 +1723,7 @@ static int D3D12_UpdateTextureInternal(D3D12_RenderData *rendererData, ID3D12Res
|
|||||||
src = (const Uint8 *)pixels;
|
src = (const Uint8 *)pixels;
|
||||||
dst = textureMemory;
|
dst = textureMemory;
|
||||||
length = w * bpp;
|
length = w * bpp;
|
||||||
if (length == pitch && length == pitchedDesc.RowPitch) {
|
if (length == (UINT)pitch && length == pitchedDesc.RowPitch) {
|
||||||
SDL_memcpy(dst, src, (size_t)length * h);
|
SDL_memcpy(dst, src, (size_t)length * h);
|
||||||
} else {
|
} else {
|
||||||
if (length > (UINT)pitch) {
|
if (length > (UINT)pitch) {
|
||||||
|
|||||||
Reference in New Issue
Block a user