Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dispatch: Try harder to avoid calling the resolver
Our caller may load (eg) epoxy_glAlphaFunc, which is a function pointer, and then call through that value multiple times. Until the caller re-examines the value of that function pointer, which is a copy relocation in the executable, repeated calls mean repeated work resolving the GL function. We can't make the caller reinspect the variable, but the resolver function can avoid doing redundant work. Fixes: #171 Signed-off-by: Adam Jackson <[email protected]>
- Loading branch information