summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/eglfs/qeglfswindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfswindow.cpp b/src/plugins/platforms/eglfs/qeglfswindow.cpp
index 036b26a165..32d20e6aaa 100644
--- a/src/plugins/platforms/eglfs/qeglfswindow.cpp
+++ b/src/plugins/platforms/eglfs/qeglfswindow.cpp
@@ -89,8 +89,9 @@ void QEglFSWindow::create()
m_window = hooks->createNativeWindow(hooks->screenSize(), m_format);
m_surface = eglCreateWindowSurface(display, config, m_window, NULL);
if (m_surface == EGL_NO_SURFACE) {
+ EGLint error = eglGetError();
eglTerminate(display);
- qFatal("EGL Error : Could not create the egl surface: error = 0x%x\n", eglGetError());
+ qFatal("EGL Error : Could not create the egl surface: error = 0x%x\n", error);
}
}