Arm Community
Site
Search
User
Site
Search
User
Support forums
Mobile, Graphics, and Gaming forum
context release failing
Jump...
Cancel
Locked
Locked
Replies
5 replies
Subscribers
137 subscribers
Views
5598 views
Users
0 members are here
OpenGL ES
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
context release failing
Alexander Irion
over 12 years ago
Note: This was originally posted on 1st July 2013 at
http://forums.arm.com
Hello,
I'm using the latest Mali OpenGL ES 3.0 emulator under Ubuntu 12.04 32 Bit with an AMD Radeon HD 6670.
When I try to release the EGL context with this line:
eglMakeCurrent(_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
I get an EGL error 3003 (Bad Alloc).
Making the context current before was all succesful:
GraphicsWindowX11::init() - eglInitialize() succeded eglMajorVersion=1 iMinorVersion=3
GraphicsWindowX11::init() - window created =1
EGL_SAMPLE_BUFFERS: 1
EGL_SAMPLES: 8
GL renderer: [AMD Radeon HD 6670]
GL vendor:[ATI Technologies Inc.]
GL version: [4.2.12002 Compatibility Profile Context 9.012]
GL shading language version: [4.20]
GL_EXTENSIONS: GL_OES_compressed_ETC1_RGB8_texture GL_KHR_texture_compression_astc_ldr
GL_RENDERER: Mali OpenGL ES Emulator Revision r1p2-00rel0
GL_VENDOR: ARM Ltd.
GL_VERSION: OpenGL ES 3.0
GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 3.00
Kind regards,
Alexander Irion
Rhys Copeland
over 12 years ago
Note: This was originally posted on 15th July 2013 at
http://forums.arm.com
Hi Alexander,
Apologies for the delay. Could you let me know if this is an OpenGL ES 2.0 or 3.0 context you're creating?
Thanks!
Cancel
Vote up
0
Vote down
Cancel
Alexander Irion
over 12 years ago
Note: This was originally posted on 15th July 2013 at
http://forums.arm.com
Hello,
EGL_CONTEXT_CLIENT_VERSION is 3 but EGL_RENDERABLE_TYPE is EGL_OPENGL_ES2_BIT, since EGL_OPENGL_ES3_BIT_KHR does not work.
As you can see at the output GL_VERSION is OpenGL ES 3.
Regards,
Alexander
Cancel
Vote up
0
Vote down
Cancel
Rhys Copeland
over 12 years ago
Note: This was originally posted on 15th July 2013 at
http://forums.arm.com
Hi Alexander,
What do you mean when you say EGL_OPENGL_ES3_BIT_KHR doesn't work? This token should be accepted by EGL...
The problem seems to definitely be because EGL_CONTEXT_CLIENT_VERSION and EGL_RENDERABLE_TYPE are mismatched (which may well be a separate problem in our implementation, but I'd need to check further).
Cancel
Vote up
0
Vote down
Cancel
Alexander Irion
over 12 years ago
Note: This was originally posted on 18th July 2013 at
http://forums.arm.com
When I specify EGL_RENDERABLE_TYPE as EGL_OPENGL_ES3_BIT_KHR eglChooseConfig fails with EGL_BAD_ATTRIBUTE.
--Alex
Cancel
Vote up
0
Vote down
Cancel
Alexander Irion
over 12 years ago
Note: This was originally posted on 18th July 2013 at
http://forums.arm.com
Ah, I just read here (
http://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_create_context.txt
)
that EGL 1.4 is required for EGL_OPENGL_ES3_BIT_KHR, and eglInitialize says 1.3.
Maybe this could be the problem??
Cancel
Vote up
0
Vote down
Cancel