glx: load dri driver with RTLD_LOCAL so dlclose never fails to unload
authorJerome Glisse <jglisse@redhat.com>
Thu, 29 May 2014 17:32:21 +0000 (13:32 -0400)
committerAdam Jackson <ajax@redhat.com>
Thu, 29 May 2014 17:32:21 +0000 (13:32 -0400)
commite3cc0d90e14e62a0a787b6c07a6df0f5c84039be
tree9d58ae915a9ebb81ff7eab3c1cb073ad62fe754a
parentc0bd206a148b8fcda253359efe8c95871f89bd05
glx: load dri driver with RTLD_LOCAL so dlclose never fails to unload

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.

Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
src/glx/dri_common.c