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
This commit is contained in:
parent
9bfcfb7f74
commit
774e43c51d
1 changed files with 0 additions and 6 deletions
|
@ -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…
Reference in a new issue