summaryrefslogtreecommitdiffstats
path: root/src/openglwidgets/qopenglwidget.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-01 13:36:32 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-05 06:00:11 +0100
commit47df0eb5131a5fc0decd049bd3f9eefeb26276df (patch)
treec2ec1da41ad2ea7d21f781ffebbc0aafbbcd5a61 /src/openglwidgets/qopenglwidget.cpp
parent3ff66569eac5737af56a5bf910cbc2970d7312f0 (diff)
Doc: fix QOpenGLWidget::defaultFramebufferObject documentation
Fix the link to QSurfaceFormat::StereoBuffers, and clean the text up a bit. If everything is a \note, then we might just as well not have notes, so move the statement about when this function is useful out of a note, and combine the statements elaborating on ownership and lifetime of framebuffer and contexts into a single note. Pick-to: 6.5 6.5.0 Change-Id: I7cb1f9ff78ba760e99d639550130f5c833ad684a Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/openglwidgets/qopenglwidget.cpp')
-rw-r--r--src/openglwidgets/qopenglwidget.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/openglwidgets/qopenglwidget.cpp b/src/openglwidgets/qopenglwidget.cpp
index 68fabc7f14..6c3a412219 100644
--- a/src/openglwidgets/qopenglwidget.cpp
+++ b/src/openglwidgets/qopenglwidget.cpp
@@ -1358,15 +1358,13 @@ GLuint QOpenGLWidget::defaultFramebufferObject() const
\return The framebuffer object handle of the specified target buffer or
\c 0 if not yet initialized.
- \note Calling this overload only makes sense if \l QSurfaceFormat::StereoBuffer is enabled
- and supported by the hardware. Will return the default buffer if it's not.
+ Calling this overload only makes sense if \l QSurfaceFormat::StereoBuffers is enabled
+ and supported by the hardware. If not, this method will return the default buffer.
\note The framebuffer object belongs to the context returned by context()
- and may not be accessible from other contexts.
-
- \note The context and the framebuffer object used by the widget changes when
- reparenting the widget via setParent(). In addition, the framebuffer object
- changes on each resize.
+ and may not be accessible from other contexts. The context and the framebuffer
+ object used by the widget changes when reparenting the widget via setParent().
+ In addition, the framebuffer object changes on each resize.
\since 6.5