summaryrefslogtreecommitdiffstats
path: root/examples/shadow-map-qml/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shadow-map-qml/main.cpp')
-rw-r--r--examples/shadow-map-qml/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/shadow-map-qml/main.cpp b/examples/shadow-map-qml/main.cpp
index 2e70ba22b..886dfe35a 100644
--- a/examples/shadow-map-qml/main.cpp
+++ b/examples/shadow-map-qml/main.cpp
@@ -41,6 +41,7 @@
#include <Qt3DQuick/quickwindow.h>
#include <Qt3DRenderer/qrenderaspect.h>
+#include <Qt3DInput/QInputAspect>
#include <QGuiApplication>
#include <QQmlContext>
@@ -59,6 +60,7 @@ int main(int argc, char* argv[])
view.resize(1600, 800);
engine.aspectEngine()->registerAspect(new Qt3D::QRenderAspect());
+ engine.aspectEngine()->registerAspect(new Qt3D::QInputAspect());
engine.aspectEngine()->initialize();
QVariantMap data;
data.insert(QStringLiteral("surface"), QVariant::fromValue(static_cast<QSurface *>(&view)));