Guard around a bug in older versions of Qt

Change-Id: I7d6c11bd426c87b3d1abcedbfc18ccc7b912b1a2
This commit is contained in:
David Edmundson 2015-02-16 16:46:16 +01:00
parent 5cfe737618
commit ae2b9f7099

View File

@ -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));
}