mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 06:30:24 +01:00
[965] Remove an open-coded memcpy.
This commit is contained in:
parent
9bf9122925
commit
540faf5f91
1 changed files with 4 additions and 4 deletions
|
|
@ -257,12 +257,12 @@ static void copy_strided_array( GLubyte *dest,
|
|||
if (size == stride)
|
||||
memcpy(dest, src, count * size);
|
||||
else {
|
||||
GLuint i,j;
|
||||
GLuint i;
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
for (j = 0; j < size; j++)
|
||||
*dest++ = *src++;
|
||||
src += (stride - size);
|
||||
memcpy(dest, src, size);
|
||||
src += stride;
|
||||
dest += size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue