kms: Also initialize in resize(), if required.

It appears to have been an incorrect assumption that flush always comes before
resize. At least for me, that is not the case. It also strikes me as being more
robust this way.

Change-Id: Iafd2cfe7b89802899e844152e0901e588ff0d8a6
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
bb10
Robin Burchell 2014-08-15 01:00:25 +02:00
parent 2a33bfcfd1
commit 6af327216b
1 changed files with 5 additions and 0 deletions

View File

@ -203,6 +203,11 @@ void QKmsBackingStore::resize(const QSize &size, const QRegion &staticContents)
m_context->makeCurrent(window());
if (!m_initialized) {
initializeOpenGLFunctions();
m_initialized = true;
}
if (m_texture)
glDeleteTextures(1, &m_texture);