Hi bob, I just dug up this old response of yours on the "EGL_BAD_MATCH" error because I ran into the same issue twice already. The first time your suggestion with setting the pixel format on the surface holder did help. But now I got another crash report from an oldish Android phone where it doesn't work. Do you have any idea how to fix that problem?
Thanks in advance! On Saturday, November 19, 2011 11:50:43 AM UTC-6, bob wrote: > > Turns out adding the second line makes it work: > > mGLView = new GLSurfaceView(this); > > mGLView.getHolder( ).setFormat( PixelFormat.RGBA_8888 ); > > On Nov 19, 9:05 am, bob <[email protected]> wrote: > > Turns out this statement doesn't throw the exception: > > > > mGLView.setEGLConfigChooser (8, 8, 8, 8, 0, 0); > > > > What it does is set things up for the exception to be thrown at some > > unclear point in the future. > > > > What I'm trying to do is use 32 bit color if supported. Otherwise, > > use whatever. Hasn't anyone done this before? > > > > On Nov 19, 6:02 am, hoyski <[email protected]> wrote: > > > > > > > > > > > > > > > > > On Nov 18, 12:47 pm, bob <[email protected]> wrote: > > > > > > I have this code > > > > > > try { > > > > mGLView.setEGLConfigChooser (8, 8, 8, 8, 0, 0); > > > > } > > > > catch(Exception e) > > > > { > > > > mGLView.setEGLConfigChooser(false); > > > > } > > > > > > Anyone know why it doesn't catch this Exception? How do I make it > > > > fall back to an RGB_565 mode if I can't get the mode I want? > > > > > > 11-18 11:43:19.818: E/AndroidRuntime(10295): > > > > java.lang.RuntimeException: createWindowSurface failed: EGL_BAD_MATCH > > > > > Maybe both calls are throwing the exception. setEGLConfigChooser has > > > to be called before setRenderer. Otherwise, both calls will fail. > > > > > - Dave > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

