diff options
author | Gunnar Sletta <gunnar@sletta.org> | 2014-08-29 09:31:53 +0000 |
---|---|---|
committer | Gunnar Sletta <gunnar@sletta.org> | 2014-08-29 11:54:20 +0200 |
commit | 3913ba57462b7c370b66771c16b1976a4b439607 (patch) | |
tree | db559f610f190b8792b6237dcf84a3de826fc96f | |
parent | 69697b098a7a4078bb32c5fd8c47416bb0af53ab (diff) | |
download | qtwayland-3913ba57462b7c370b66771c16b1976a4b439607.tar.gz |
Warn when EGLContext could not be created.
Change-Id: Id840ace3d762e47c0076745301e8012755077770
Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
-rw-r--r-- | src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp index 65fde250..a891e768 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() |