Re: i.mx6 crash on glGetString

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

On 09/09/2014 10:31 PM, Sven Gothel wrote:

> 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 ?
>
Would be nice to get more details of the implementation
of the glXChooseFBConfig function you use ..

Maybe you can contact 'upstream', i.e. the implementor
and notify them about this bug.

We surely could also workaround this issue and do pass '{ NONE }'
here .. to sooth this issue swiftly :)
However, keep in mind that this code works for eons :)

It would be nice if you can do the patch and test it
on your [buggy] system.
Then please offer the working patch via git (email, pull request).

Thank you.

> ~Sven
>
>



signature.asc (828 bytes) Download Attachment