eglfs/stub: Die fatally if the framebuffer can't be opened.
There's no point trying to continue, everything graphical is not going to work. Change-Id: I4c85de63746618ddf73435b491a3244b7e53a76c Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>bb10
parent
6af327216b
commit
20c14d87f2
|
|
@ -85,8 +85,10 @@ void QEglFSHooks::platformInit()
|
|||
|
||||
framebuffer = qt_safe_open(fbDev, O_RDONLY);
|
||||
|
||||
if (framebuffer == -1)
|
||||
if (framebuffer == -1) {
|
||||
qWarning("EGLFS: Failed to open %s", qPrintable(fbDev));
|
||||
qFatal("EGLFS: Can't continue without a display");
|
||||
}
|
||||
}
|
||||
|
||||
void QEglFSHooks::platformDestroy()
|
||||
|
|
|
|||
Loading…
Reference in New Issue