Remove the OpenGL compile guards around QWasmBackingStore

This is no longer needed as OpenGL is no longer necessary for the
backing store on WASM.

Change-Id: I3eaa8094558947da2d1cc5526533f9f3fc8afeab
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Mikolaj Boc 2022-11-28 15:41:44 +01:00
parent a812d1eb66
commit 1ebdd7130a

View File

@ -14,9 +14,7 @@
#include "qwasmstring.h"
#include "qwasmwindow.h"
#ifndef QT_NO_OPENGL
# include "qwasmbackingstore.h"
#endif
#include "qwasmbackingstore.h"
#include "qwasmfontdatabase.h"
#if defined(Q_OS_UNIX)
#include <QtGui/private/qgenericunixeventdispatcher_p.h>
@ -174,14 +172,10 @@ QPlatformWindow *QWasmIntegration::createPlatformWindow(QWindow *window) const
QPlatformBackingStore *QWasmIntegration::createPlatformBackingStore(QWindow *window) const
{
#ifndef QT_NO_OPENGL
QWasmCompositor *compositor = QWasmScreen::get(window->screen())->compositor();
QWasmBackingStore *backingStore = new QWasmBackingStore(compositor, window);
m_backingStores.insert(window, backingStore);
return backingStore;
#else
return nullptr;
#endif
}
void QWasmIntegration::removeBackingStore(QWindow* window)