tests: Use __GLX_FORCE_VENDOR_LIBRARY_0 for all of the GLX tests.
Set the environment variable __GLX_FORCE_VENDOR_LIBRARY_0 for all of the GLX tests instead of __GLX_VENDOR_LIBRARY_NAME. Individual tests can force libGLX to load a vendor library early by calling glXGetClientString or similar.
This commit is contained in:
parent
4261cb96f6
commit
bc674f798c
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
__GLX_VENDOR_LIBRARY_NAME=dummy
|
||||
export __GLX_VENDOR_LIBRARY_NAME
|
||||
__GLX_FORCE_VENDOR_LIBRARY_0=dummy
|
||||
export __GLX_FORCE_VENDOR_LIBRARY_0
|
||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TOP_BUILDDIR/tests/dummy/.libs
|
||||
export LD_LIBRARY_PATH
|
||||
|
|
|
@ -2,11 +2,4 @@
|
|||
|
||||
. $TOP_SRCDIR/tests/glxenv.sh
|
||||
|
||||
# Set __GLX_FORCE_VENDOR_LIBRARY_0 instead of __GLX_VENDOR_LIBRARY_NAME. That
|
||||
# way, it won't pre-load the vendor library, which would force it to generate
|
||||
# a dispatch stub for glXExampleExtensionFunction.
|
||||
__GLX_FORCE_VENDOR_LIBRARY_0=$__GLX_VENDOR_LIBRARY_NAME
|
||||
export __GLX_FORCE_VENDOR_LIBRARY_0
|
||||
unset __GLX_VENDOR_LIBRARY_NAME
|
||||
|
||||
./testglxgetprocaddress_genentry
|
||||
|
|
Loading…
Reference in a new issue