Commit 84adf4ff authored by Shawn Rutledge's avatar Shawn Rutledge Committed by The Qt Project
Browse files

Added QQuickWindow::setDefaultAlphaBuffer()


All QQuickWindows will render using the same OpenGL context, so
for a window to support transparency, the OpenGL context needs
to be created with support for transparency from the very start.
Therefore the application needs to call setDefaultAlphaBuffer()
before creating windows.  There are some relevant comments in
QTBUG-20768 although the bug itself is not the same use case
(it was already OK as long as the first window had a translucent
color, because of setAlphaBufferSize in QQuickWindow::setColor()).

Change-Id: I92e111c1a62c0d510821b646fd334e52254f8f57
Reviewed-by: default avatarGunnar Sletta <gunnar.sletta@digia.com>
parent 5e3d81ec
No related merge requests found
Showing with 39 additions and 2 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment