48cbe20f60
Introduce two lists for tracking dynamic dispatch stubs: newProcList and extProcList. newProcList contains stubs which were generated by a getProcAddress call but not assigned a prototype from a vendor, and extProcList contains stubs which have been assigned a prototype but may still need the vendor's implementation to be plugged into the dispatch tables. Also introduce a generation number which is an attribute of both dispatch stubs and dispatch tables, and a global variable, latestGeneration. Each time __glDispatchGetProcAddress() generates a new dispatch stub, latestGeneration is incremented and assigned to the new dispatch stub. Dispatch tables with a generation number less than latestGeneration need to be fixed up with functions from the extProcList whose generation number is greater than the dispatch table's number. After the fixup is complete, the dispatch table's generation is updated to latestGeneration. This also requires we track current dispatch tables globally; this will be done in a subsequent change. Link against glapi to get the required symbols we need. |
||
---|---|---|
include | ||
m4 | ||
src | ||
.gitignore | ||
autogen.sh | ||
configure.ac | ||
dbg_configure.sh | ||
Makefile.am |