mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05: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
f0de41331a
commit
dde3257b6c
@ -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