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:
> On Sun, 13 May 2012 11:52:20 +1000, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> > 
> > Can you provide an apk for me to test?
> 
> Trent sent me a link offline.  It enters the user program, but crashes
> later.
> 
> If I create a minimal user program using just the main Allegro library
> then that *does* load okay.  Now to find out why eglCreateWindowSurface
> fails.  But not today.

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




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