Commit graph

5 commits

Author SHA1 Message Date
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
Kyle Brenneman 6601edb825 tests: Rewrite testglxgetprocaddress.
Rewrite testglxgetprocaddress to remove the PROC_DEFINES and CHECK_PROC macros.

Aside from being easier to deal with in the debugger, breaking up the
CHECK_PROC macro will be necessary to add test coverage for the GLX stub
generation.
2016-10-18 13:46:16 -06:00
Kyle Brenneman e7596b6845 Fix testglxgetprocaddress.
Remove the check from testglxgetprocaddress for a function without the prefix
"gl", since libGLX no longer enforces that prefix.
2015-07-16 08:29:10 -06:00
Kyle Brenneman 42f160579c testglxgetprocaddress: Use a valid display connection.
The test function in testglxgetprocaddress uses a display and screen number to
figure out which vendor to dispatch to, so it needs a real, valid display
connection.

Fixes issue #32.
2015-05-12 11:45:02 -06:00
Brian Nguyen e0e68e14d4 [tests] Add testglxgetprocaddress subtest
This subtest verifies that glXGetProcAddress() works for the various
classifications of "GetProcAddress-able" functions:

- GLX 1.4 functions with dispatchers implemented directly by the API
  library
- GLX 1.4 extension functions with dispatchers implemented by a vendor
  loaded by the API library
- Core OpenGL functions with static dispatch stubs in libGLdispatch
- Core OpenGL functions with dynamic dispatch stubs generated by
  libGLdispatch

This also tests some assertions about these dispatch stubs; namely that
the core GL dispatch stubs are no-ops if no context is current.
2013-08-26 11:03:43 -07:00