22 Mar
2014
22 Mar
'14
2:12 a.m.
2014-03-21 20:04 GMT+01:00 Johan Engelen <jbc.engelen@...2592...>:
The warning is emitted because the (incredibly ugly!) #define PREMUL_ALPHA_LOOP for(unsigned int c=0; c<PC-1; ++c) will resolve to #define PREMUL_ALPHA_LOOP for(unsigned int c=0; c<0; ++c) for the template instantiated value for PC = 1. Meaning that the loop will never run. Is this intended? If so, please fix the code to not emit that warning. If it's a bug, please fix the bug! :)
This is intended. When PC=1, we are blurring an alpha-only surface, so there is nothing to premultiply.
Regards, Krzysztof