From 774e43c51d74499e81d3e7c64574bf7a4456e8c7 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 22 Apr 2020 15:14:23 +0300 Subject: [PATCH] Revert "Reload Shm texture when buffer size changes" This reverts commit d6f98d1ecc3a08ce8cf5c8a994331e909b7a51ca. The proposed solution is incorrect and we leak video memory. Differential Revision: https://phabricator.kde.org/D29131 --- platformsupport/scenes/opengl/abstract_egl_backend.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/platformsupport/scenes/opengl/abstract_egl_backend.cpp b/platformsupport/scenes/opengl/abstract_egl_backend.cpp index 2f84cfbe70..dda5d2c899 100644 --- a/platformsupport/scenes/opengl/abstract_egl_backend.cpp +++ b/platformsupport/scenes/opengl/abstract_egl_backend.cpp @@ -427,12 +427,6 @@ void AbstractEglTexture::updateTexture(WindowPixmap *pixmap) if (image.isNull() || !s) { return; } - if (image.size() != m_size) { - // buffer size has changed, reload shm texture - if (!loadTexture(pixmap)) { - return; - } - } Q_ASSERT(image.size() == m_size); const QRegion damage = s->trackedDamage(); s->resetTrackedDamage();