mirror of https://github.com/qt/qt3d.git
Fix image texture loading bug.
This commit is contained in:
parent
c1e9c29ddb
commit
0888631165
|
|
@ -264,6 +264,7 @@ void QDeclarativeEffect::setTexture(const QUrl& value)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Load the new texture
|
// Load the new texture
|
||||||
|
d->textureUrl = value;
|
||||||
QString localFile = d->textureUrl.toLocalFile();
|
QString localFile = d->textureUrl.toLocalFile();
|
||||||
if (localFile.endsWith(QLatin1String(".dds")))
|
if (localFile.endsWith(QLatin1String(".dds")))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue