From dde3257b6c032dbcc0711fcb59900aa226bd0425 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Sun, 7 Jun 2009 20:29:13 +0100 Subject: [PATCH] [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. --- common/cogl-bitmap-fallback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cogl-bitmap-fallback.c b/common/cogl-bitmap-fallback.c index a7e9704d9..e750a7ccf 100644 --- a/common/cogl-bitmap-fallback.c +++ b/common/cogl-bitmap-fallback.c @@ -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)