qmlglsrc: Fix missing depth & stencil buffer
authorMatthias Fuchs <matthias1.fuchs@zeiss.com>
Mon, 14 Mar 2022 16:20:38 +0000 (17:20 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 6 Apr 2022 09:18:16 +0000 (09:18 +0000)
commitaf71adf3153fac05495c7f758999fb78e9379937
treeaef8d022d0aeb201cb2006c838055f5814058971
parent8a55dd92330f2c4589a80f6b5c5360984f675f32
qmlglsrc: Fix missing depth & stencil buffer

Qt Quick primitives which have some kind of alpha blending
(transparency, rounded corners) are z-sorted by Qt and rendered in the
correct order. For opaque primitives Qt relies on the OpenGL depth
buffer to correctly determine the visibility of stacked elements.

This change enables the depth buffer to make sure that opaque primitives
are correctly z-stacked.

https://doc.qt.io/qt-6/qtquick-visualcanvas-scenegraph-renderer.html#opaque-primitives

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2114>
subprojects/gst-plugins-good/ext/qt/qtwindow.cc