Guard around a bug in older versions of Qt
Change-Id: I7d6c11bd426c87b3d1abcedbfc18ccc7b912b1a2
This commit is contained in:
parent
5cfe737618
commit
ae2b9f7099
@ -122,9 +122,12 @@ public:
|
||||
void updateTexture(const QSize &size, const QString &elementId)
|
||||
{
|
||||
QQuickWindow::CreateTextureOptions options;
|
||||
//Qt < 5.3.2. has a crash on some atlas textures
|
||||
#if (QT_VERSION > QT_VERSION_CHECK(5, 3, 2))
|
||||
if (m_fitMode != Tile) {
|
||||
options = QQuickWindow::TextureCanUseAtlas;
|
||||
}
|
||||
#endif
|
||||
setTexture(s_cache->loadTexture(m_frameSvg->window(), m_frameSvg->frameSvg()->image(size, elementId), options));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user