denis demidov
|
eglCreateWindowSurface returns EGL_BAD_MATCH - GLESv2
|
denis demidov
09/07/2013 8:10 AM
post104914
|
eglCreateWindowSurface returns EGL_BAD_MATCH - GLESv2
target: x86 neutrino 6.5.0
host: linux
Linking with GLESv2, EGL(1.2), gf libraries.
I'm trying to create surface with API: eglCreateWindowSurface and got errors EGL_BAD_MATCH. Attributes I'm using for
eglConfig:
EGLint attribs[] = {
EGL_NATIVE_VISUAL_ID, 0,
EGL_RED_SIZE, 5,
EGL_GREEN_SIZE, 5,
EGL_BLUE_SIZE, 5,
EGL_DEPTH_SIZE, 16,
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
EGL_LEVEL, layer_index,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES_BIT,
EGL_NONE
};
Full source code in attachment.
On my setup egl-gears works perfectly, but I need to link my application with libGLESv2 version.
Let me know if you need build logs for this.
Where can I download egl-gears with GLESv2, to validate my setup? Even binaries would be great.
|
|
|