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, 7 insertions, 1 deletions
diff --git a/src/scenegraph/coreapi/qsgcontext.cpp b/src/scenegraph/coreapi/qsgcontext.cpp
index 68a65bb..05eb477 100644
--- a/src/scenegraph/coreapi/qsgcontext.cpp
+++ b/src/scenegraph/coreapi/qsgcontext.cpp
@@ -8,6 +8,10 @@
#include "default/default_glyphnode.h"
#include "threadedtexturemanager.h"
+#ifdef Q_WS_MAC
+#include "mactexturemanager.h"
+#endif
+
#include <private/qobject_p.h>
class QSGContextPrivate : public QObjectPrivate
@@ -159,7 +163,9 @@ Renderer *QSGContext::createRenderer()
*/
TextureManager *QSGContext::createTextureManager()
{
-#if defined (Q_WS_MAC) || defined (Q_WS_WIN)
+#if defined (Q_WS_MAC)
+ return new QSGMacTextureManager;
+#elif defined (Q_WS_WIN)
return new QSGThreadedTextureManager;
#else
return new TextureManager;