summaryrefslogtreecommitdiffstats
path: root/src/threed/textures/qgltexture2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/threed/textures/qgltexture2d.cpp')
-rw-r--r--src/threed/textures/qgltexture2d.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/threed/textures/qgltexture2d.cpp b/src/threed/textures/qgltexture2d.cpp
index b02fcabca..50f1df2f4 100644
--- a/src/threed/textures/qgltexture2d.cpp
+++ b/src/threed/textures/qgltexture2d.cpp
@@ -46,7 +46,6 @@
#include "qglext_p.h"
#include "qabstractdownloadmanager.h"
#include "qdownloadmanager.h"
-#include "qthreadeddownloadmanager.h"
#include "qopenglfunctions.h"
#include <QtCore/qfile.h>
@@ -434,14 +433,8 @@ void QGLTexture2D::setUrl(const QUrl &url)
}
else
{
- if (!d->downloadManager) {
- if (getenv(QT3D_MULTITHREAD)) {
- //Download in a multithreaded environment
- d->downloadManager = new QThreadedDownloadManager();
- } else {
- //Download in a single threaded environment
- d->downloadManager = new QDownloadManager();
- }
+ if (!d->downloadManager) {
+ d->downloadManager = new QDownloadManager();
connect (d->downloadManager,SIGNAL(downloadComplete(QByteArray)),this, SLOT(textureRequestFinished(QByteArray)));
}