mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Use memmove for potentially overlapping copies
* The first couple of pixels will overlap
This commit is contained in:
@@ -339,7 +339,7 @@ void GLReplay::GetOutputWindowData(uint64_t id, bytebuf &retData)
|
||||
{
|
||||
for(int32_t x = 0; x < outw.width; x++)
|
||||
{
|
||||
memcpy(dst, src, 3);
|
||||
memmove(dst, src, 3);
|
||||
dst += 3;
|
||||
src += 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user