[Improvement] (TextureState.cpp): Use memcpy rather than memmove in UpdateRegion2D.

This commit is contained in:
BZLZHH
2025-04-30 18:02:49 +08:00
parent c5c5172087
commit cbff3d2714
+2 -3
View File
@@ -417,9 +417,8 @@ GLenum TextureState::UpdateRegion2D(GLenum target, GLint level, GLint xoffset,
dstRow[i] = ReverseBits(srcRow[i]);
}
} else {
MG_Util::Debug::LogD("MG_State: Texture: UpdateRegion2D memmove(dst=%p, src=%p, size=%zu) called.", dstRow, srcRow, width * bytesPerPixel);
memmove(dstRow, srcRow, width * bytesPerPixel);
MG_Util::Debug::LogD("MG_State: Texture: UpdateRegion2D memcpy(dst=%p, src=%p, size=%zu) called.", dstRow, srcRow, width * bytesPerPixel);
memcpy(dstRow, srcRow, width * bytesPerPixel);
}
}