Re: [AD] tests on OS X (was Re: SF.net SVN: alleg:[15387] allegro/branches/5.1/src/opengl) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sat, 25 Feb 2012 16:35:45 +0100, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> On Sat, 25 Feb 2012 09:34:40 +1100
> Peter Wang <novalazy@xxxxxxxxxx> wrote:
>
> > >
> > > http://alleg.de/tests/run%20on%202012-02-24%2000:30osx/test%20texture%2015b%20RGB_555%20%5Bsw%5D.png
> > > http://alleg.de/tests/run%20on%202012-02-24%2000:30osx/test%20texture%2015b%20RGB_555%20%5Bhw%5D.png
> >
> > Perhaps something to do with GL_ALPHA_BIAS?
> >
>
> Indeed. I changed the 1 to 0.999 which makes it work :(
I changed the call to glPixelTransferf. I don't know how it worked on
yours, 0.999 should be rounded down to 0 when passed to glPixelTransferi :P
> > >
> > > http://alleg.de/tests/run%20on%202012-02-24%2000:30osx/test%20blend%20add%20src_one%20%5Bsw%5D.png
> > > http://alleg.de/tests/run%20on%202012-02-24%2000:30osx/test%20blend%20add%20src_one%20%5Bhw%5D.png
> >
> > Possibly the same problem with the alpha channel.
> >
>
> It was loading of green.png with ALLEGRO_NO_PREMULTIPLIED_ALPHA. Why
> are we using that flag so much in the tests?
The tests were mainly written when that was the default.
Peter