Re: i.mx6 crash on glGetString

Posted by Sven Gothel on
URL: https://forum.jogamp.org/i-mx6-crash-on-glGetString-tp4033064p4033114.html

On 09/09/2014 04:50 PM, gouessej [via jogamp] wrote:
>     Ilya Averyanov wrote
>     Pass null to third argument, does not look correct.
>
> http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=0650&db=man&fname=/usr/share/catman/g_man/cat3/OpenGL/glxchoosefbconfig.z
>
>     If attribList is NULL then glXChooseFBConfig returns an array of GLX frame
>          buffer configurations that are available on the specified screen
>

Same here:

  <https://www.opengl.org/sdk/docs/man2/xhtml/glXChooseFBConfig.xml>

"If attrib_list is NULL, then glXChooseFBConfig returns an array of GLX
 frame buffer configurations that are available on the specified screen."


.. and in the the official GLX spec:

  <http://www.opengl.org/documentation/specs/glx/glx1.4.pdf>

"If attrib list is NULL or empty (first attribute is None), then selection
and sorting of GLXFBConfigs is done according to the default criteria in
Tables 3.4 and 3.1, as described below under Selection and Sorting."

Hence 'NULL' or '{ NONE }' shall be equivalent and both legal.

This might be a bug in that EGL/GLX wrapper implementation you use ?

~Sven



signature.asc (828 bytes) Download Attachment