summaryrefslogtreecommitdiffstats
path: root/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
diff options
context:
space:
mode:
authorDavid Redondo <qt@david-redondo.de>2023-11-24 11:44:07 +0100
committerDavid Redondo <qt@david-redondo.de>2023-11-24 11:56:22 +0100
commit5948151aaf6fb5d36d991dab71b2cc2c87e84572 (patch)
tree347d6909b1c03c578953c31b69e9c57300245b2a /src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
parent426dab9209bb3509e715dd87a5614b7a17a254b6 (diff)
Warn if eglSwapBuffers fail
This failing was the cause of windows freezing on NVidia. If it happens for some other reason we can now see why. Pick-to: 6.6 Change-Id: Iabd44b1b3f73a54adac3024436ffe116ca15d21a Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp')
-rw-r--r--src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
index 050b3eba3..e10b89813 100644
--- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
+++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
@@ -372,7 +372,8 @@ void QWaylandGLContext::swapBuffers(QPlatformSurface *surface)
window->waitForFrameSync(100);
}
window->handleUpdate();
- eglSwapBuffers(eglDisplay(), eglSurface);
+ if (!eglSwapBuffers(eglDisplay(), eglSurface))
+ qCWarning(lcQpaWayland, "eglSwapBuffers failed with %#x, surface: %p", eglGetError(), eglSurface);
window->setCanResize(true);
}