QSGTexture *QSGContext::createTexture(const QImage &image) const { QSGPlainTexture *t = new QSGPlainTexture(); if (!image.isNull()) t->setImage(image); return t; }
QSGTexture *QQuickDefaultTextureFactory::createTexture(QQuickWindow *) const { QSGPlainTexture *t = new QSGPlainTexture(); t->setImage(im); return t; }