From 73f17bf4993f3731e7d77dcc77e697323f13c207 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 5 Nov 2024 13:52:28 +0100 Subject: [PATCH] eglfs: Restore raster window support code that went missing Restore the snippet added in 4bc8f548222a0dd2967063a23e76c37d302253cb Amends 0a10d23c4a49dd14a1ded41b7cc6921909b0ee7a Change-Id: Id83ff523e6343003c198600fe0ee91a71fb6e3e0 Fixes: QTBUG-129512 Reviewed-by: Inho Lee (cherry picked from commit ad50ca7d9ed3644454904488dc4719ca446e8091) Reviewed-by: Qt Cherry-pick Bot --- src/opengl/qopenglcompositorbackingstore.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/opengl/qopenglcompositorbackingstore.cpp b/src/opengl/qopenglcompositorbackingstore.cpp index 052f29d41e6..20c86fb8adc 100644 --- a/src/opengl/qopenglcompositorbackingstore.cpp +++ b/src/opengl/qopenglcompositorbackingstore.cpp @@ -141,6 +141,10 @@ void QOpenGLCompositorBackingStore::flush(QWindow *flushedWindow, const QRegion Q_UNUSED(region); Q_UNUSED(offset); + QOpenGLCompositorWindow *handle = dynamic_cast(flushedWindow->handle()); + if (handle && !handle->backingStore()) + handle->setBackingStore(this); + if (!rhi(flushedWindow)) { QPlatformBackingStoreRhiConfig rhiConfig; rhiConfig.setApi(QPlatformBackingStoreRhiConfig::OpenGL);