diff --git a/gl/cogl-texture.c b/gl/cogl-texture.c index 877107d3c..7e689a50a 100644 --- a/gl/cogl-texture.c +++ b/gl/cogl-texture.c @@ -1197,6 +1197,8 @@ _cogl_texture_bitmap_prepare (CoglTexture *tex, if ((tex->bitmap.format & COGL_A_BIT) && tex->bitmap.format != COGL_PIXEL_FORMAT_A_8) internal_format = tex->bitmap.format | COGL_PREMULT_BIT; + else + internal_format = tex->bitmap.format; } /* Find closest format accepted by GL */ diff --git a/gles/cogl-texture.c b/gles/cogl-texture.c index ab1653e07..5070b785c 100644 --- a/gles/cogl-texture.c +++ b/gles/cogl-texture.c @@ -1273,6 +1273,8 @@ _cogl_texture_bitmap_prepare (CoglTexture *tex, if ((tex->bitmap.format & COGL_A_BIT) && tex->bitmap.format != COGL_PIXEL_FORMAT_A_8) internal_format = tex->bitmap.format | COGL_PREMULT_BIT; + else + internal_format = tex->bitmap.format; } /* Find closest format accepted by GL */