summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/qwaylandglcontext.cpp7
-rw-r--r--src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/qwaylandglcontext_p.h2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/qwaylandglcontext.cpp b/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/qwaylandglcontext.cpp
index a3e6c534663..54a63566691 100644
--- a/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/qwaylandglcontext.cpp
+++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/qwaylandglcontext.cpp
@@ -191,13 +191,16 @@ public:
int m_textureWrap;
};
-QWaylandGLContext::QWaylandGLContext() = default;
+QWaylandGLContext::QWaylandGLContext()
+ : QEGLPlatformContext(),
+ m_api(EGL_OPENGL_ES_API)
+{
+}
QWaylandGLContext::QWaylandGLContext(EGLDisplay eglDisplay, QWaylandDisplay *display,
const QSurfaceFormat &fmt, QPlatformOpenGLContext *share)
: QEGLPlatformContext(fmt, share, eglDisplay)
, m_display(display)
- , m_decorationsContext(EGL_NO_CONTEXT)
{
m_reconnectionWatcher = QObject::connect(m_display, &QWaylandDisplay::connected,
m_display, [this] { invalidateContext(); });
diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/qwaylandglcontext_p.h b/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/qwaylandglcontext_p.h
index e653e60e215..9da8e10a66f 100644
--- a/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/qwaylandglcontext_p.h
+++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/qwaylandglcontext_p.h
@@ -57,7 +57,7 @@ protected:
private:
QWaylandDisplay *m_display = nullptr;
- EGLContext m_decorationsContext;
+ EGLContext m_decorationsContext = EGL_NO_CONTEXT;
DecorationsBlitter *m_blitter = nullptr;
bool m_supportNonBlockingSwap = true;
EGLenum m_api;