summaryrefslogtreecommitdiffstats
path: root/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@sletta.org>2014-08-29 09:31:53 +0000
committerGunnar Sletta <gunnar@sletta.org>2014-08-29 11:54:20 +0200
commit3913ba57462b7c370b66771c16b1976a4b439607 (patch)
treedb559f610f190b8792b6237dcf84a3de826fc96f /src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
parent69697b098a7a4078bb32c5fd8c47416bb0af53ab (diff)
Warn when EGLContext could not be created.
Change-Id: Id840ace3d762e47c0076745301e8012755077770 Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp')
-rw-r--r--src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp4
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()