mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Merge pull request #556 from tomaka/egl-lib
Try libEGL.so.1 before libEGL.so
This commit is contained in:
commit
4ca90e2035
|
@ -63,7 +63,10 @@ impl XConnection {
|
||||||
|
|
||||||
// TODO: use something safer than raw "dlopen"
|
// TODO: use something safer than raw "dlopen"
|
||||||
let egl = {
|
let egl = {
|
||||||
let libegl = unsafe { dlopen::dlopen(b"libEGL.so\0".as_ptr() as *const _, dlopen::RTLD_NOW) };
|
let mut libegl = unsafe { dlopen::dlopen(b"libEGL.so.1\0".as_ptr() as *const _, dlopen::RTLD_NOW) };
|
||||||
|
if libegl.is_null() {
|
||||||
|
libegl = unsafe { dlopen::dlopen(b"libEGL.so\0".as_ptr() as *const _, dlopen::RTLD_NOW) };
|
||||||
|
}
|
||||||
|
|
||||||
if libegl.is_null() {
|
if libegl.is_null() {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Reference in a new issue