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
master
Vlad Zahorodnii 2020-04-22 15:14:23 +03:00
parent 9bfcfb7f74
commit 774e43c51d
1 changed files with 0 additions and 6 deletions

View File

@ -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();