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
Robin Burchell 2014-08-15 13:49:06 +02:00
parent 6af327216b
commit 20c14d87f2
1 changed files with 3 additions and 1 deletions

View File

@ -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()