mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Improvement] (TextureState.cpp): Use memcpy rather than memmove in UpdateRegion2D.
This commit is contained in:
@@ -417,9 +417,8 @@ GLenum TextureState::UpdateRegion2D(GLenum target, GLint level, GLint xoffset,
|
|||||||
dstRow[i] = ReverseBits(srcRow[i]);
|
dstRow[i] = ReverseBits(srcRow[i]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
MG_Util::Debug::LogD("MG_State: Texture: UpdateRegion2D memmove(dst=%p, src=%p, size=%zu) called.", 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);
|
||||||
memmove(dstRow, srcRow, width * bytesPerPixel);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user