summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-08-09 09:27:44 -0700
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-08-10 20:18:26 +0000
commitcb344baa8ee64988d0c20641ff81743a9218a53f (patch)
tree2d3cec299e22f1ccbc5a8b5b98f0fde1795b0d75
parent04d9a2e97ac89ec2da5be3fcc2ad5374be7d498a (diff)
QWaylandGLContext: print the 0x prefix in error code
So it's not ambiguous that this is hex, in messages like: "WARNING: QWaylandGLContext::makeCurrent: eglError: 3003" Change-Id: Ie4bb662dcb274440ab8bfffd1709ba0415c3d790 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit e05dff0abf4f97dceaeeb29c22f337d353d879ed) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
index 376ba5a79..0b64db5c7 100644
--- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
+++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
@@ -294,7 +294,7 @@ bool QWaylandGLContext::makeCurrent(QPlatformSurface *surface)
if (!m_currentWindow->needToUpdateContentFBO() && (eglSurface != EGL_NO_SURFACE)) {
if (!eglMakeCurrent(eglDisplay(), eglSurface, eglSurface, eglContext())) {
- qWarning("QWaylandGLContext::makeCurrent: eglError: %x, this: %p \n", eglGetError(), this);
+ qWarning("QWaylandGLContext::makeCurrent: eglError: %#x, this: %p \n", eglGetError(), this);
return false;
}
return true;
@@ -311,7 +311,7 @@ bool QWaylandGLContext::makeCurrent(QPlatformSurface *surface)
}
if (!eglMakeCurrent(eglDisplay(), eglSurface, eglSurface, eglContext())) {
- qWarning("QWaylandGLContext::makeCurrent: eglError: %x, this: %p \n", eglGetError(), this);
+ qWarning("QWaylandGLContext::makeCurrent: eglError: %#x, this: %p \n", eglGetError(), this);
m_currentWindow->setCanResize(true);
return false;
}