From 3913ba57462b7c370b66771c16b1976a4b439607 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Fri, 29 Aug 2014 09:31:53 +0000 Subject: Warn when EGLContext could not be created. Change-Id: Id840ace3d762e47c0076745301e8012755077770 Reviewed-by: Giulio Camuffo --- src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp') diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp index 65fde250e..a891e7682 100644 --- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp +++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp @@ -96,6 +96,10 @@ QWaylandGLContext::QWaylandGLContext(EGLDisplay eglDisplay, const QSurfaceFormat m_context = eglCreateContext(m_eglDisplay, m_config, EGL_NO_CONTEXT, eglContextAttrs.constData()); m_shareEGLContext = EGL_NO_CONTEXT; } + + EGLint error = eglGetError(); + if (error != EGL_SUCCESS) + qWarning("QWaylandGLContext: failed to create EGLContext, error=%x", error); } QWaylandGLContext::~QWaylandGLContext() -- cgit v1.2.3