The default remains OpenGLSurface.
Change-Id: I96b400b7aa9c2b0435ea0614598e1b1f32b6d6b2
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
context = windowManager->createRenderContext(sg);
}
- q->setSurfaceType(QWindow::OpenGLSurface);
+ q->setSurfaceType(windowManager ? windowManager->windowSurfaceType() : QSurface::OpenGLSurface);
q->setFormat(q->defaultFormat());
animationController = new QQuickAnimatorController();
{
}
+QSurface::SurfaceType QSGRenderLoop::windowSurfaceType() const
+{
+ return QSurface::OpenGLSurface;
+}
+
void QSGRenderLoop::cleanup()
{
if (!s_instance)
#define QSGRenderLoop_P_H
#include <QtGui/QImage>
+#include <QtGui/QSurface>
#include <private/qtquickglobal_p.h>
#include <QtCore/QSet>
void removeWindow(QQuickWindow *win) { m_windows.remove(win); }
QSet<QQuickWindow *> windows() const { return m_windows; }
+ virtual QSurface::SurfaceType windowSurfaceType() const;
+
// ### make this less of a singleton
static QSGRenderLoop *instance();
static void setInstance(QSGRenderLoop *instance);