The glapi scripts are fully capable of generating this correctly for all GL APIs if we don't set exec="dynamic". exec="dynamic" should only be used for glBegin, glEnd, and all functions that are legal inside Begin/End. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8297>