[cogl-bitmap] Fix minor copy and paste error in _cogl_bitmap_fallback_premult

The returned bitmap format should include the COGL_PREMULT_BIT flag not
have it explicitly removed as for _cogl_bitmap_fallback_unpremult.
This commit is contained in:
Robert Bragg 2009-06-07 20:29:13 +01:00
parent 5e18cee77a
commit cb959ef457

View File

@ -416,7 +416,7 @@ _cogl_bitmap_fallback_premult (const CoglBitmap *bmp,
/* Initialize destination bitmap */
*dst_bmp = *bmp;
dst_bmp->format = (bmp->format & COGL_UNPREMULT_MASK);
dst_bmp->format |= COGL_PREMULT_BIT;
/* Allocate a new buffer to hold converted data */
dst_bmp->data = g_malloc (sizeof(guchar)