cogl-texture: Avoid premult conversion if the dst format has no alpha
authorNeil Roberts <neil@linux.intel.com>
Tue, 1 Jun 2010 12:32:57 +0000 (13:32 +0100)
committerNeil Roberts <neil@linux.intel.com>
Tue, 22 Jun 2010 11:22:47 +0000 (12:22 +0100)
commit3abe26b913c895072d31fa5e88a8724ba311d174
tree67891ac3d1f6cbdb9e1f00c4f759ad0268001992
parent279ad7b7e51572138d41bf5a078adab33a57c913
cogl-texture: Avoid premult conversion if the dst format has no alpha

The _cogl_texture_needs_premult_conversion function was already
checking whether the source format had an alpha channel before
returning TRUE, but it also doesn't make sense to do the premult
conversion if the destination format has no alpha. This patch adds
that check in too.
clutter/cogl/cogl/cogl-texture.c