summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qopenglcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qopenglcontext.cpp')
-rw-r--r--src/gui/kernel/qopenglcontext.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/kernel/qopenglcontext.cpp b/src/gui/kernel/qopenglcontext.cpp
index 3106b4cd918..6c006ab8b35 100644
--- a/src/gui/kernel/qopenglcontext.cpp
+++ b/src/gui/kernel/qopenglcontext.cpp
@@ -297,10 +297,18 @@ void QOpenGLContext::setScreen(QScreen *screen)
The current configuration includes the format, the share context, and the
screen.
+ If the OpenGL implementation on your system does not support the requested
+ version of OpenGL context, then QOpenGLContext will try to create the closest
+ matching version. The actual created context properties can be queried
+ using the QSurfaceFormat returned by the format() function. For example, if
+ you request a context that supports OpenGL 4.3 Core profile but the driver
+ and/or hardware only supports version 3.2 Core profile contexts then you will
+ get a 3.2 Core profile context.
+
Returns true if the native context was successfully created and is ready to
be used with makeCurrent(), swapBuffers(), etc.
- \sa makeCurrent(), destroy()
+ \sa makeCurrent(), destroy(), format()
*/
bool QOpenGLContext::create()
{