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 Sun, 26 Feb 2012 09:36:03 +1100
Peter Wang <novalazy@xxxxxxxxxx> wrote:

> 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
> 

Indeed. 0.0 is the only version which works. I reverted the change. We
could probably check GL_VERSION for "APPLE" and GL_RENDERER for Intel
HD 3000 and in that case set the GL_BIAS to 0.0. Curiously enough all
the 555 and 5551 tests are correct with 0.0 here.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/