libglvnd/tests/testglxgetprocaddress_genentry.sh
Kyle Brenneman dc95a0eec0 tests: Add a test for generated GLX entrypoints.
Added a variation of testglxgetprocaddress that doesn't pre-load the vendor
library. This forces it to generate a GLX entrypoint at runtime for
glXExampleExtensionFunction.

In testglxgetprocaddress.c, added a call to glXGetClientString so that it will
load the vendor library without having to pre-load it.
2016-10-18 13:46:18 -06:00

12 lines
376 B
Bash
Executable file

#!/bin/bash
source $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.
export __GLX_FORCE_VENDOR_LIBRARY_0=$__GLX_VENDOR_LIBRARY_NAME
unset __GLX_VENDOR_LIBRARY_NAME
./testglxgetprocaddress