mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 20:42:09 +08:00
ui: catch silent EGL failure (#28169)
Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: 432f316e8df9fd614f784f0b5b3b445d14cc5f8e
This commit is contained in:
@@ -19,6 +19,10 @@ void setMainWindow(QWidget *w) {
|
||||
wl_surface_set_buffer_transform(s, WL_OUTPUT_TRANSFORM_270);
|
||||
wl_surface_commit(s);
|
||||
w->showFullScreen();
|
||||
|
||||
// ensure we have a valid eglDisplay, otherwise the ui will silently fail
|
||||
void *egl = native->nativeResourceForWindow("egldisplay", w->windowHandle());
|
||||
assert(egl != nullptr);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user