aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgcontextplugin.cpp
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@theqtcompany.com>2016-03-10 10:46:30 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-03-10 10:20:59 +0000
commitcaca1a7f70fe0a957de2805383da8e8f7326e9c9 (patch)
treebb5c2b57b6818c15c42e623535565d7dfb6f8dfc /src/quick/scenegraph/qsgcontextplugin.cpp
parent587517475fdf3f53acae64804b699f79351689b5 (diff)
Turn the SoftwareContext plugin into the Scenegraph Software Adaptation
The 2D renderer will now become a built-in adaptation of scenegraph that should always be available to fallback to when there are no other renders available. So rather than be an external plugin, now it is a built in adaptation. Change-Id: Ifa02fd50f3085ad1e6f1a73c3ce1e1825b677cc7 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontextplugin.cpp')
-rw-r--r--src/quick/scenegraph/qsgcontextplugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgcontextplugin.cpp b/src/quick/scenegraph/qsgcontextplugin.cpp
index 87b4ed5b8e..cf12918e3e 100644
--- a/src/quick/scenegraph/qsgcontextplugin.cpp
+++ b/src/quick/scenegraph/qsgcontextplugin.cpp
@@ -45,6 +45,7 @@
// Built-in adaptations
#include <QtQuick/private/qsgdummyadaptation_p.h>
+#include <QtQuick/private/qsgsoftwareadaptation_p.h>
#ifdef QSG_D3D12
#include <QtQuick/private/qsgd3d12adaptation_p.h>
#endif
@@ -84,6 +85,7 @@ QSGAdaptionBackendData::QSGAdaptionBackendData()
{
// Fill in the table with the built-in adaptations.
builtIns.append(new QSGDummyAdaptation);
+ builtIns.append(new QSGSoftwareAdaptation);
#ifdef QSG_D3D12
builtIns.append(new QSGD3D12Adaptation);
#endif