Fix alpha channel computation with ColorMatrixColorFilter

Bug #7222476

There were two issues:
- Blending was ignored with color filters
- The addition vector of a color filter was treated as integer values
  instead of float values

Change-Id: Id94065704a30ee8aaaa5724a9f3a3cff7c50ced7
This commit is contained in:
Romain Guy
2012-09-24 16:01:35 -07:00
committed by Jean-Baptiste Queru
parent f8538594fe
commit e83221c547
3 changed files with 13 additions and 11 deletions

View File

@ -347,7 +347,6 @@ const char* gFS_Main_ApplyColorOp[4] = {
// None
"",
// Matrix
// TODO: Fix premultiplied alpha computations for color matrix
" fragColor *= colorMatrix;\n"
" fragColor += colorMatrixVector;\n"
" fragColor.rgb *= fragColor.a;\n",