Fix [#22610] Alpha problem with textureswhen Brightness > 1 or Contrast < 1
authorMatt Ebb <matt@mke3.net>
Thu, 17 Jun 2010 07:20:12 +0000 (07:20 +0000)
committerMatt Ebb <matt@mke3.net>
Thu, 17 Jun 2010 07:20:12 +0000 (07:20 +0000)
commit3173232bfa1e6878088cdbb0134fe709a1f757bd
tree0f8db23abdfcdaa72ff0016e94de2747e5b44544
parenta8f6a198a6a88a803f2fa871ec96bd74713c3756
Fix [#22610] Alpha problem with textureswhen Brightness > 1 or Contrast < 1

* Enabled premultiplication for packed images
* Added pack/unpack operator to image template
* Moved brightness/contrast corrections to after de-premultiplication in image texture sampling
source/blender/blenkernel/intern/image.c
source/blender/editors/space_image/image_buttons.c
source/blender/editors/space_image/image_ops.c
source/blender/render/intern/source/imagetexture.c