mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
[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:
parent
5e18cee77a
commit
cb959ef457
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user