Re: [AD] premultiplied alpha |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2010-10-31, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> On Sun, 2010-10-31 at 12:19 +1100, Peter Wang wrote:
>
> >
> > > As for making it the default I don't know. Maybe it's best to change the
> > > default blend mode from ALPHA/INVERSE_ALPHA to ONE/ZERO. That way we
> > > have no default any longer, everyone needs to call al_set_blender at
> > > least once in each A5 program and decide the used blending for
> > > themselves.
> >
> > I'm fine with leaving it as it is.
> >
>
> Me too. With the flag you can use pre-multiplied alpha just as easy as
> interpolated alpha, shouldn't matter much which one we use by default.
> Attached is a possible patch, will add documentation and unit test when
> committing.
It doesn't look too invasive to me, but we are supposed to be under a
feature freeze. The 5.1 branch will be opening up this weekend.
If you must commit it for 5.0, the GDI and Mac loaders should
be updated as well.
Peter