diff options
author | Eric Anholt <eric@anholt.net> | 2008-01-10 15:05:39 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-01-10 15:05:39 -0800 |
commit | 540faf5f91057ef311999afc5a6366bebe7dec33 (patch) | |
tree | 9ba955dba3fa666eaa7f3a53cb427cc26052d06e /src | |
parent | 9bf91229257c8b26710a23795ae1094aa98db8a8 (diff) |
[965] Remove an open-coded memcpy.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 0df61f2972..8729022e48 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -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; } } } |