gbm: Do not try to use eglGetDisplay

This commit is contained in:
Victor Brekenfeld 2020-05-18 20:18:08 +02:00
parent 997895b3c7
commit cc6e3569f0
1 changed files with 1 additions and 2 deletions

View File

@ -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())
})
} else {
trace!(log, "Default EGL Display Initialization via GetDisplay");
wrap_egl_call(|| ffi::egl::GetDisplay(display as *mut _))
Ok(ffi::egl::NO_DISPLAY)
}
}
}