Re: [AD] Android 2.2

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


> On Sun, 13 May 2012 14:00:15 +1000, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> Found the culprit:
>
> egl_createContext tries to force 16 bit.
>
>        if (!color_size_specified) {
>           egl_setConfigAttrib(ALLEGRO_RED_SIZE, 5);
>           egl_setConfigAttrib(ALLEGRO_GREEN_SIZE, 6);
>           egl_setConfigAttrib(ALLEGRO_BLUE_SIZE, 5);
>        }
>
> Commenting that out allowed al_create_display to succeed.
>
> Peter

It defaults to 16 bit. I guess it's ok not to set a default though. If you
set any of RED/GREEN/BLUE size it won't set that default.

--
Trent





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