Emphasize the need for calling setDefaultFormat early on OS X

Task-number: QTBUG-46067
Change-Id: I0fe6e7ba309306a8fc471424b30eed4491bd39e7
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
Laszlo Agocs 2015-05-27 15:00:00 +02:00
parent 0a7fcfd612
commit f5d1c329ce

View File

@ -104,6 +104,12 @@ QT_BEGIN_NAMESPACE
non-sharable. To overcome this issue, prefer using
QSurfaceFormat::setDefaultFormat() instead of setFormat().
\note Calling QSurfaceFormat::setDefaultFormat() before constructing
the QApplication instance is mandatory on some platforms (for example,
OS X) when an OpenGL core profile context is requested. This is to
ensure that resource sharing between contexts stays functional as all
internal contexts are created using the correct version and profile.
\section1 Painting Techniques
As described above, subclass QOpenGLWidget to render pure 3D content in the