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 <inho.lee@qt.io>
(cherry picked from commit ad50ca7d9ed3644454904488dc4719ca446e8091)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Laszlo Agocs 2024-11-05 13:52:28 +01:00 committed by Qt Cherry-pick Bot
parent 50f507eb44
commit 73f17bf499

View File

@ -141,6 +141,10 @@ void QOpenGLCompositorBackingStore::flush(QWindow *flushedWindow, const QRegion
Q_UNUSED(region);
Q_UNUSED(offset);
QOpenGLCompositorWindow *handle = dynamic_cast<QOpenGLCompositorWindow *>(flushedWindow->handle());
if (handle && !handle->backingStore())
handle->setBackingStore(this);
if (!rhi(flushedWindow)) {
QPlatformBackingStoreRhiConfig rhiConfig;
rhiConfig.setApi(QPlatformBackingStoreRhiConfig::OpenGL);