Revert "Reload Shm texture when buffer size changes"

This reverts commit d6f98d1ecc.

The proposed solution is incorrect and we leak video memory.

Differential Revision: https://phabricator.kde.org/D29131
remotes/origin/work/fix_kcm_crash
Vlad Zahorodnii 6 years ago
parent 9bfcfb7f74
commit 774e43c51d
  1. 6
      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();

Loading…
Cancel
Save