Cause fatal error when trying to make a context current in wrong thread.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 30 Aug 2011 08:12:46 +0000 (10:12 +0200)
committerGunnar Sletta <gunnar.sletta@nokia.com>
Tue, 30 Aug 2011 08:50:53 +0000 (10:50 +0200)
commit1056d02ee07ab9bba3a4dd9f5fd483d45773e665
treed93802a67cb985e47ae8005a2813cc3df84ec830
parent19a0048d1755d127607f66266ab4868191647b3c
Cause fatal error when trying to make a context current in wrong thread.

Since QOpenGLContext is now a QObject, it needs to be moved to, or
created in, the thread where it's going to be used.

Change-Id: I7ed12b25e75c84bb12be8c7102e46e9a242fc2df
Reviewed-on: http://codereview.qt.nokia.com/3858
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/gui/kernel/qopenglcontext.cpp