Skip to content

Commit

Permalink
Porting guide: add setClearBeforeRendering
Browse files Browse the repository at this point in the history
Change-Id: I6ba4f999eb91d497422f4125ff58ce04aa4f7595
Reviewed-by: Andy Nichols <[email protected]>
  • Loading branch information
alpqr committed Jun 16, 2020
1 parent 081b05f commit e6b2a46
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/src/source-breaks.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ 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.

\li setClearBeforeRendering() and clearBeforeRendering() have been removed from
QQuickWindow. There is no option for skipping the color buffer clearing in Qt
6. Calling setClearBeforeRendering() was often necessary in Qt 5 in combination
with underlays, to prevent Qt Quick from clearing the content rendered into the
color buffer. In Qt 6, there is a more robust approach: connecting to the
beforeRenderPassRecording() signal, that is emitted after clearing, but before
rendering Qt Quick's content.

\endlist

\section1 Changes to Qt OpenGL
Expand Down

0 comments on commit e6b2a46

Please sign in to comment.