Now that we delete and re-create the texture in surfaceDamaged(), we have
to tell the node about the texture each time, and not only at creation.
delete m_texture;
if (m_surface->type() == WaylandSurface::Texture) {
+ //qDebug() << "createTextureFromId" << m_surface->texture() << m_surface->geometry().size();
m_texture = canvas()->sceneGraphEngine()->createTextureFromId(m_surface->texture(),
m_surface->geometry().size());
} else {
if (!node) {
node = new QSGSimpleTextureNode();
- node->setTexture(m_texture);
}
+ node->setTexture(m_texture);
node->setRect(QRectF(0, height(), width(), -height()));
node->setFiltering(smooth() ? QSGTexture::Linear : QSGTexture::Nearest);