diff --git a/CHANGELOG.md b/CHANGELOG.md index 62567a0a97..0f43ae9fe5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Unreleased - Fixed EGL's `Device::query_devices()` being too strict about required extensions +- Fixed crash in `EglGetProcAddress` on Win32-x86 platform due to wrong calling convention # Version 0.32.0 diff --git a/glutin/src/api/egl/mod.rs b/glutin/src/api/egl/mod.rs index a8c9e940f5..e3ecbdef46 100644 --- a/glutin/src/api/egl/mod.rs +++ b/glutin/src/api/egl/mod.rs @@ -38,7 +38,7 @@ pub(crate) static EGL: Lazy> = Lazy::new(|| { unsafe { SymWrapper::new(&paths).map(Egl).ok() } }); -type EglGetProcAddress = unsafe extern "C" fn(*const ffi::c_void) -> *const ffi::c_void; +type EglGetProcAddress = unsafe extern "system" fn(*const ffi::c_void) -> *const ffi::c_void; static EGL_GET_PROC_ADDRESS: OnceCell> = OnceCell::new(); /// EGL interface.