From a9e4d6d1f7e690ec95ec98b7703be4c109b4f61b Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 10 Jun 2021 18:49:35 +0300 Subject: [PATCH] x11: Initialize m_target of EGL platform surface texture We need to initialize m_target; otherwise the surface texture won't be bound to GL_TARGET_2D. --- src/plugins/platforms/x11/standalone/eglbackend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/x11/standalone/eglbackend.cpp b/src/plugins/platforms/x11/standalone/eglbackend.cpp index 0655106019..bab676cb5e 100644 --- a/src/plugins/platforms/x11/standalone/eglbackend.cpp +++ b/src/plugins/platforms/x11/standalone/eglbackend.cpp @@ -155,6 +155,7 @@ EglPixmapTexturePrivate::EglPixmapTexturePrivate(EglPixmapTexture *texture, EglB : q(texture) , m_backend(backend) { + m_target = GL_TEXTURE_2D; } EglPixmapTexturePrivate::~EglPixmapTexturePrivate()