When an offset of ~0 is passed to _glapi_add_entrypoint, it is supposed to generate a dispatch stub and insert it in the internal table. However, because offset is GLuint, the test "offset >= DISPATCH_TABLE_SIZE" will always fail and the function will return GL_FALSE.
Created attachment 2753 [details] [review] Generate dynamic offsets, handle GLuint ~0 values properly This patch *completely* re-works _glapi_add_entrypoint. Dispatch offsets are now correctly assigned and all of the GLint vs. GLuint issues should be resolved. This patch /should/ fix this bug and bug #3378.
_glapi_add_entrypoint has been removed from the API. It has been replaced with _glapi_add_dispatch. I am closing #3377 and #3378 as fixed. Any problems discovered in this new API should have new bugs filed for them.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.