OpenGL Under QML - depth issue
Unsolved
QML and Qt Quick
-
I'm using OpenGL to render a scene underneath my QML UI. I've attached my C++ render() call to my QQuickWindow::beforeRenderPassRecording() call to make sure it renders underneath the UI.
I'm rendering models underneath my UI and noticed that when zooming in close to a model, it begins to be rendered over the UI. I've been trying to solve this by disabling depth both through my OpenGL commands and through the SceneEnvironment QML type in my QML code, but neither are affecting the depth testing. All of my OpenGL render commands are being recorded between my window's beginExternalCommands() and endExternalCommands() calls.
Is there a way for me to completely disable depth testing for the QML UI and my OpenGL render while rendering with OpenGL?