Skip to content

Commit

Permalink
Fix formatting for display.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
janKilika authored Sep 2, 2024
1 parent 617bf11 commit 8289223
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions glutin/src/api/egl/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,11 @@ impl Display {
#[cfg(free_unix)]
fn sanitize_libglvnd_aliasing(display: EglDisplay, version: Version) -> EglDisplay {
match (display, version) {
// libglvnd has an unsavoury quirk of unconditionally aliasing `getPlatformDisplay` (unavailable on EGL 1.4) and
// `getPlatformDisplayEXT`, which may result in an `EglDisplay::Khr` being created
// for a platform that does not support KHR functions and only supports EXT
// functions. As such, we check if the version is equal to 1.4 and downgrade to
// `EglDisplay::Ext` if so.
// libglvnd has an unsavoury quirk of unconditionally aliasing `getPlatformDisplay`
// (unavailable on EGL 1.4) and `getPlatformDisplayEXT`, which may result in
// an `EglDisplay::Khr` being created for a platform that does not support
// KHR functions and only supports EXT functions. As such, we check if the
// version is equal to 1.4 and downgrade to `EglDisplay::Ext` if so.
// See: https://gitlab.freedesktop.org/glvnd/libglvnd/-/blob/606f6627cf481ee6dcb32387edc010c502cdf38b/src/EGL/libegl.c#L270-358
// https://gitlab.freedesktop.org/glvnd/libglvnd/-/blob/606f6627cf481ee6dcb32387edc010c502cdf38b/src/EGL/libegl.c#L409-461
// https://gitlab.freedesktop.org/glvnd/libglvnd/-/blob/606f6627cf481ee6dcb32387edc010c502cdf38b/include/glvnd/libeglabi.h#L231-232
Expand Down

0 comments on commit 8289223

Please sign in to comment.