[Mesa-dev] Check OpenGL and OpenGL ES2.0 renderer info in one process
Jammy Zhou
jammy.zhou at linaro.org
Thu Dec 9 01:20:35 PST 2010
Hi All,
Currently I am doing some experiments with mesa 7.9 driver to check the
renderer info of underlying OpenGL and OpenGL ES2.0 drivers to decide which
driver to use at runtime. With my code attached, the renderer info for GLES2
can be got successfully, and although the EGL and GLES2 libraries are
unloaded before creating the GLX context, glGetString(GL_RENDERER) for
OpenGL still returns NULL. After enable MESA_DEBUG, I found the error
message "GL User Error: calling GL function without a rendering context",
and many warnings as "Mesa warning: failed to remap ....". I also changed
the sequence for GL and GLES2, but got similar results. If do separately,
both renderer info can be got successfully. It seems that EGL/GLES2 and
GLX/GL affects each other in this case, may be related to library
load/unload(?). Do you guys have some ideas to solve this problem?
Regards,
Jammy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20101209/710a6f5b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: renderer_info.c
Type: text/x-csrc
Size: 5835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20101209/710a6f5b/attachment-0001.c>
More information about the mesa-dev
mailing list