AlphaBlend refactoring (simplify, reduce operations)
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
1.) The AlphaBlend function uses 3 times "color2.alpha / $ffff", which can be utilized as another "factor" variable.
2.) In case one of the color alphas is 0 (=fully transparent), the result is trivial and the computations don't have to be executed.
The code result is not modified.
Additional information:
Patch attached.
Mantis conversion info:
- Mantis ID: 34264
- Fixed in version: 3.3.1
- Fixed in revision: 39747 (#a84554ef)
- Target version: 3.2.0