gbm: Do not try to use eglGetDisplay
This commit is contained in:
parent
997895b3c7
commit
cc6e3569f0
|
@ -60,8 +60,7 @@ impl<D: RawDevice + 'static> Backend for Gbm<D> {
|
||||||
ffi::egl::GetPlatformDisplay(ffi::egl::PLATFORM_GBM_MESA, display as *mut _, attribs.as_ptr())
|
ffi::egl::GetPlatformDisplay(ffi::egl::PLATFORM_GBM_MESA, display as *mut _, attribs.as_ptr())
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
trace!(log, "Default EGL Display Initialization via GetDisplay");
|
Ok(ffi::egl::NO_DISPLAY)
|
||||||
wrap_egl_call(|| ffi::egl::GetDisplay(display as *mut _))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue