Commit graph

3 commits

Author SHA1 Message Date
Kyle Brenneman 73b38ce822 tests: Fix testpatchentrypoints.
In testpatchentrypoints, remove the additional calls to glVertex3fv after
releasing the current context.

libGLdispatch doesn't unpatch entrypoints from __glDispatchLoseCurrent anymore,
so those calls will still increment the __glXSawVertex3fv counter.

This means that it no longer tests entrypoint unpatching, but fixing that would
require multiple vendor libraries, which with GLX requires multiple screens.
2016-06-22 11:25:36 -06:00
Kyle Brenneman bb67f11d40 tests: Merge the dummy and patchentry libraries.
Remove the libGLX_patchentry dummy vendor library. The libGLX_dummy.so library
will provide the entrypoint patching callbacks based on an environment
variable.
2016-05-20 10:45:15 -06:00
Brian Nguyen 171fa7481f Add testpatchentrypoints unit test
This unit test verifies that entrypoint patching works as expected, by
loading libGLX_patchentry.so, looking up the address of
__glXSawVertex3fv defined in libGLX_patchentry.so, and verifying that
the value at this symbol matches the number of calls to glVertex3fv()
(which is hacked to increment __glXSawVertex3fv via entrypoint
rewriting).
2014-01-23 20:28:50 -08:00