glew icon indicating copy to clipboard operation
glew copied to clipboard

KHR_get_all_proc_addresses is assumed present for EGL

Open coordz opened this issue 8 years ago • 2 comments

In glewContextInit() there is a call to obtain the address of glGetString. However, this, and any other calls to get core function addresses, will fail on EGL contexts that are missing KHR_get_all_proc_addresses extension.

At a minimum it'd be good to check for KHR_get_all_proc_addresses and error gracefully but preferably make things work regardless, e.g. by directly querying the system library for entry points.

coordz avatar Nov 16 '16 15:11 coordz

I see. GLEW shouldn't be assuming KHR_get_all_proc_addresses for getting core function addresses. https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_get_all_proc_addresses.txt

nigels-com avatar Dec 24 '16 15:12 nigels-com

Yes, I see what you mean. Bumping this for GLEW 2.2.0.

nigels-com avatar Oct 10 '18 07:10 nigels-com