On 02/27/2014 11:52 PM, Eric Anholt wrote:
j.gli...@gmail.com writes:

From: Jerome Glisse <jgli...@redhat.com>

There is no reason anymore to load with RTLD_GLOBAL and for some driver
this even result in dlclose failing to unload leading to catastrophic
failure with swrast fallback.

I don't remember the last time drivers relied on GL symbols being
present -- we've been using _mesa_ prefixed stuff in meta for many
years, for example.  I think this should be plenty safe.

It has been almost a decade... we started encountering apps that did things like

PFNGLGETBUFFERPOINTERVPROC glGetBufferPointerv;

in their code. When we tried to call glGetBufferPointerv internally, we jumped to the function pointer in the application's data segment... and exploded. That's when we added all the CALL_GetBufferPointerv type macros to directly call through the dispatch pointer instead.

Reviewed-by: Eric Anholt <e...@anholt.net>

Reviewed-by: Ian Romanick <ian.d.roman...@intel.com>

Should this be marked for 10.1 or even earlier stable?

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to