summaryrefslogtreecommitdiffstats
path: root/demos/composition/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/composition/main.cpp')
-rw-r--r--demos/composition/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/demos/composition/main.cpp b/demos/composition/main.cpp
index 3a959a9..fe142ad 100644
--- a/demos/composition/main.cpp
+++ b/demos/composition/main.cpp
@@ -42,11 +42,17 @@
#include "composition.h"
#include <QApplication>
+#ifdef QT_OPENGL_SUPPORT
+#include <QtOpenGL>
+#endif
int main(int argc, char **argv)
{
// Q_INIT_RESOURCE(deform);
+#ifdef QT_OPENGL_SUPPORT
+ QGL::setPreferredPaintEngine(QPaintEngine::OpenGL);
+#endif
QApplication app(argc, argv);
CompositionWidget compWidget(0);