plugins/screencast: Allocate offscreen texture in...
plugins/screencast: Allocate offscreen texture in WindowScreenCastSource::render(QImage) as big as the memfd buffer
textureSize() can temporarily mismatch the target buffer size. It can be a problem if glGetTexImage() gets called. glGetTexImage() assumes that the provided buffer is as big as the texture. If it's not, it will write data outside the bounds of the buffer.
Edited by Vlad Zahorodnii