Re: [AD] POT hack for OpenGL driver

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2008-03-03, Milan Mimica <milan.mimica@xxxxxxxxxx> wrote:
> Peter Wang wrote:
> > Hi,
> > 
> > Here is a hacky patch to make the OpenGL driver round up textures to the
> > next power of two.  Actually it does it unconditionally.  I ran into
> > some trouble checking extensions because they weren't necessarily
> > available when I wanted to check them.  Anyway, maybe someone who
> > understands the graphics code can do something with it.
> 
> I've commited a fixed patch. Everything works now as far I can tell. There was 
> this obscure bug in draw_quad() which took me some time to find it.

Thanks. Mainly I wasn't sure whether true_w and true_h should be in the
ALLEGRO_BITMAP superclass or subclasses, or if the d3d driver would be
broken.

Peter





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