EGL_BAD_CONFIG

582 views
Skip to first unread message

Brian Edmond

unread,
May 13, 2012, 9:04:49 PM5/13/12
to andro...@googlegroups.com
I have a native application running OpenGL ES 2.0 code.  I setup the config as follows:

EGLint config[] =

{

  EGL_SURFACE_TYPE, EGL_WINDOW_BIT,

  EGL_RED_SIZE, 8,

  EGL_GREEN_SIZE, 8,

  EGL_BLUE_SIZE, 8,

  EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,

  EGL_NONE

};

EGLint numconfigs;

EGLint format;


eglChooseConfig(display, config,  &egl_config, 1, &numconfigs);


eglGetConfigAttrib(display, &egl_config, EGL_NATIVE_VISUAL_ID, &format);

I get back a single config but when I make the eglGetConfigAttrib call I get the following error in logcat:


   libEGL : validate_display_config:202 error 3005 (EGL_BAD_CONFIG)


However everything works fine (context and window surface have no errors) and the app functions as I would expect.  Has anyone seen this before or does anyone have ideas on why I would get this message?


Thanks,

Brian

F.Stein

unread,
May 13, 2012, 11:18:51 PM5/13/12
to andro...@googlegroups.com
Hi Brain,

> eglGetConfigAttrib(display, &egl_config, EGL_NATIVE_VISUAL_ID, &format);

Try to call it like this:
eglGetConfigAttrib(display, egl_config, EGL_NATIVE_VISUAL_ID, &format);

понедельник, 14 мая 2012 г., 8:04:49 UTC+7 пользователь Brian написал:

Brian Edmond

unread,
May 14, 2012, 10:10:13 AM5/14/12
to andro...@googlegroups.com
Thanks, I missed that bug :(

Brian

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/q3UcaIEBqz8J.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Reply all
Reply to author
Forward
0 new messages