From b3eb349ddddec6967fcedfdbfc857b99f34e552a Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Thu, 16 Apr 2020 09:27:47 +0200 Subject: Doc: Clarify what QQuickWindow::resetOpenGLState() resets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As there is some confusion over what resetOpenGLState() actually resets, then this clarifies it to be clearer on that it only resets the internally changed states. Change-Id: Ie6f27e4772bd757d7d435575dcd9d711a1c6a9d7 Reviewed-by: Topi Reiniƶ Reviewed-by: Laszlo Agocs --- src/quick/items/qquickwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/quick') diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp index 50b166b18f..48ba0ecc28 100644 --- a/src/quick/items/qquickwindow.cpp +++ b/src/quick/items/qquickwindow.cpp @@ -4889,6 +4889,11 @@ void QQuickWindow::setDefaultAlphaBuffer(bool useAlpha) \note This function only has an effect when using the default OpenGL scene graph adaptation. + \note This function will only reset the OpenGL context in relation to what has been changed + internally as part of the OpenGL scene graph. It does not reset anything that has been changed + externally such as direct OpenGL calls done inside the application code if those same calls are + not used internally. + \note This function has no effect when running on the RHI graphics abstraction and the underlying RHI backend is not OpenGL. -- cgit v1.2.3