Re: [AD] ex_pixelformat broken? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2009-03-13, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> On Thu, 2009-03-12 at 23:40 +0100, Elias Pschernig wrote:
> > >
> > > I've tracked it down to ogl_lock_region(). I believe after reading the
> > > texture data into a memory buffer it's missing a conversion to the
> > > format specified in the parameter list.
> > >
> >
> > I see - the formats OpenGL can't convert to directly, we probably should
> > do that (not the ones it already can). I'll see if I can fix it.
>
> Ok, many commits later I think ex_pixelformat works now 100% correctly.
Thanks!
> There is one problem remaining here when drawing into one of the
> following 4 formats using FBO:
>
> ALLEGRO_PIXEL_FORMAT_RGB_555
> ALLEGRO_PIXEL_FORMAT_RGBA_5551
> ALLEGRO_PIXEL_FORMAT_ARGB_1555
> ALLEGRO_PIXEL_FORMAT_BGR_555
>
> Uploading textures in these formats in client memory works correctly
> though, and also formats like ALLEGRO_PIXEL_FORMAT_RGB_565 work.
> Therefore I believe it's a bug in my OpenGL drivers and not with
> ex_pixelformat/Allegro.
>
> Would be interesting if everyone could run ex_pixelformat with OpenGL
> and FBO, select ANY to the left, and the above 4 formats to the right,
> and report the results.
All work correctly here in Linux/x86, some Nvidia card, nvidia driver
173.14.05, if that helps.
Peter