summaryrefslogtreecommitdiffstats
path: root/src/scenegraph/coreapi/qsgcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenegraph/coreapi/qsgcontext.cpp')
-rw-r--r--src/scenegraph/coreapi/qsgcontext.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/scenegraph/coreapi/qsgcontext.cpp b/src/scenegraph/coreapi/qsgcontext.cpp
index f8fde55..68a65bb 100644
--- a/src/scenegraph/coreapi/qsgcontext.cpp
+++ b/src/scenegraph/coreapi/qsgcontext.cpp
@@ -5,8 +5,8 @@
#include "qmlrenderer.h"
#include "default/default_rectanglenode.h"
#include "default/default_texturenode.h"
-#include "default/default_texturemanager.h"
#include "default/default_glyphnode.h"
+#include "threadedtexturemanager.h"
#include <private/qobject_p.h>
@@ -159,5 +159,9 @@ Renderer *QSGContext::createRenderer()
*/
TextureManager *QSGContext::createTextureManager()
{
- return new DefaultTextureManager;
+#if defined (Q_WS_MAC) || defined (Q_WS_WIN)
+ return new QSGThreadedTextureManager;
+#else
+ return new TextureManager;
+#endif
}