Use a singleton for the plugin.
authorGunnar Sletta <gunnar.sletta@nokia.com>
Wed, 8 Feb 2012 07:06:17 +0000 (08:06 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 8 Feb 2012 15:06:52 +0000 (16:06 +0100)
commit7d6f5913792f935ecc0bf8c382523d3daa1b8bf4
tree45830abbcbe3eb591733e3c911b18d1a64d0382c
parent9df2da5b9feab42d93548db701fc7f649fd362ab
Use a singleton for the plugin.

The factory is created from the QQuickCanvas constructor
before any alternative threads are started and doesn't need
this kind of protected. In addition this caused problems on
shutdown if multiple custom contexts where created.

Change-Id: Ifdd9bde0c65aa7c399722aea33af78087a2465b4
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/quick/scenegraph/qsgcontextplugin.cpp