OSDN Git Service

swrast: use memmove() instead of memcpy() in the SHIFT_ARRAY macro
authorBrian Paul <brianp@vmware.com>
Thu, 5 Jan 2012 18:59:30 +0000 (11:59 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 5 Jan 2012 19:49:45 +0000 (12:49 -0700)
commita44d715d2b19dc2f8f48b01144cc38e4e2c5015a
tree2671129e623f7dfb89ea11654a9be1a28e0d1e03
parent59be691638200797583bce39a83f641d30d97492
swrast: use memmove() instead of memcpy() in the SHIFT_ARRAY macro

The src/dst arrays would overlap but dst was less than src so a simple
version of memcpy() would do the right thing.  But this isn't guaranteed
when memcpy() is optimized.

Fixes demos/copypix when the dest region was clipped by the left side of
the window.

Reviewed-by: Adam Jackson <ajax@redhat.com>
src/mesa/swrast/s_span.c