Task-number: QTBUG-25472
Change-Id: Icc8d0f93841a76bbc92d09e0bf96f147ac64a8c6
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
m_image = QImage();
delete m_fbo;
delete m_multisampledFbo;
+ delete m_gl_device;
m_fbo = m_multisampledFbo = 0;
+ m_gl_device = 0;
}
if (m_actualRenderTarget == QQuickPaintedItem::FramebufferObject ||
delete m_fbo;
delete m_multisampledFbo;
m_fbo = m_multisampledFbo = 0;
+ if (m_gl_device)
+ m_gl_device->setSize(m_fboSize);
if (m_smoothPainting && ctx->format().samples() && m_multisamplingSupported) {
{