diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-22 13:30:41 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-22 16:11:12 +0200 |
commit | 67105bcc397e5a330a75f6b408333d9c970cf7df (patch) | |
tree | 2e29639452eb45e3309c101f03deb5490db7aa82 /doc | |
parent | 781a54e722d2efe0ffa0443841132fbbd1afd32d (diff) | |
download | qtdoc-67105bcc397e5a330a75f6b408333d9c970cf7df.tar.gz |
Porting guide: follow resetOpenGLState changes
Change-Id: I9c9d7b737cf34dd03e11ca64d8ed48e082bd0a88
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/source-breaks.qdoc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/doc/src/source-breaks.qdoc b/doc/src/source-breaks.qdoc index 1d32e1f4..614e1a2a 100644 --- a/doc/src/source-breaks.qdoc +++ b/doc/src/source-breaks.qdoc @@ -178,13 +178,9 @@ connecting to additional signals, such as \l{QQuickWindow::afterRenderPassRecording()}{afterRenderPassRecording()}. \li resetOpenGLState() has been moved from QQuickWindow to -QQuickFramebufferObject::Renderer. This means that applications subclassing -QQuickFramebufferObject::Renderer can continue to call the function, but they -need to call it on \c this instead of the window. For usages outside of -QQuickFramebufferObject, alternatives have to be implemented. It is recommended -to evaluate if the call is necessary at all, because in many cases it likely is -not. If some OpenGL state needs resetting to the defaults, issue the necessary -OpenGL state change calls directly in the application code. +QQuickOpenGLUtils. Note that it may not be necessary to call this function +anymore from QQuickFramebufferObject:Renderer subclasses, because the basic +OpenGL state is now reset both before and after the render() implementation. \li setClearBeforeRendering() and clearBeforeRendering() have been removed from QQuickWindow. There is no option for skipping the color buffer clearing in Qt |