[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 f0de41331a
commit dde3257b6c

View File

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