glyph-test: Avoid setting solid images as alpha maps.
authorSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 30 Jul 2012 20:21:39 +0000 (16:21 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 1 Aug 2012 03:51:53 +0000 (23:51 -0400)
commit5b0563f39eb29e4ae431717696174da5e282c346
tree50990fd462b9fcb0271e4a7107dd732b56db119f
parent38fe7cd7be388aae6dff7d9b9979eb4ffa5fa175
glyph-test: Avoid setting solid images as alpha maps.

glyph-test would sometimes set a solid image as an alpha map, which is
not allowed. When this happened and the debug spew was enabled,
messages like this one would be generated:

    *** BUG ***
    In pixman_image_set_alpha_map: The expression
            !alpha_map || alpha_map->type == BITS was false
    Set a breakpoint on '_pixman_log_error' to debug

Fix this by not passing the ALLOW_SOLID flag to create_image() when
the resulting is to be used as an alpha map.
test/glyph-test.c