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

Reply via email to