test/alphamap.c: Make dst and orig_dst more independent of each other
authorSøren Sandmann Pedersen <ssp@redhat.com>
Sat, 7 Jan 2012 22:11:45 +0000 (17:11 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 10 Jan 2012 14:04:36 +0000 (09:04 -0500)
commitab584ab500b4e7011a5b82051a90e2eea6744270
treee42e5f9cf4fb9eb15db189fb93f89e7fb9a5ccbc
parent4613f2caac595b3fa1298ac49f9c9fdcd907f14a
test/alphamap.c: Make dst and orig_dst more independent of each other

When making the copy of the destination, do so separately for the
image and the alpha map. This ensures that the alpha channel of the
alpha map will be different from the alpha channel of the actual
image.

Previously, orig_dst would be copied onto dst along with its alpha
map, which mean that the alpha map of orig_dst would become the new
alpha channel of *both* dst and dst's alpha map. This meant that test
didn't actually test that the alpha maps alpha channel was actually
fetched.
test/alphamap.c