diff --git a/clutter/cogl/cogl/cogl-bitmap-fallback.c b/clutter/cogl/cogl/cogl-bitmap-fallback.c index 097cc5292..a02d85611 100644 --- a/clutter/cogl/cogl/cogl-bitmap-fallback.c +++ b/clutter/cogl/cogl/cogl-bitmap-fallback.c @@ -379,6 +379,8 @@ _cogl_bitmap_fallback_unpremult (CoglBitmap *bmp) } } + bmp->format &= ~COGL_PREMULT_BIT; + return TRUE; } @@ -414,6 +416,8 @@ _cogl_bitmap_fallback_premult (CoglBitmap *bmp) } } + bmp->format |= COGL_PREMULT_BIT; + return TRUE; } diff --git a/clutter/cogl/cogl/cogl-texture.c b/clutter/cogl/cogl/cogl-texture.c index db9a0650d..ec69aca6f 100644 --- a/clutter/cogl/cogl/cogl-texture.c +++ b/clutter/cogl/cogl/cogl-texture.c @@ -415,8 +415,7 @@ cogl_texture_new_from_file (const gchar *filename, internal_format = _cogl_texture_determine_internal_format (bmp->format, internal_format); if (!_cogl_texture_needs_premult_conversion (bmp->format, internal_format) || - _cogl_bitmap_convert_premult_status (bmp, - bmp->format ^= COGL_PREMULT_BIT)) + _cogl_bitmap_convert_premult_status (bmp, bmp->format ^ COGL_PREMULT_BIT)) handle = cogl_texture_new_from_bitmap (bmp, flags, internal_format); cogl_handle_unref (bmp);