aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/vulkanunderqml/vulkansquircle.cpp
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-02-09 15:20:57 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-02-16 09:43:05 +0000
commit98976d1d71b1e639bd6191097a89a94589ac7bdd (patch)
treec12bb59d20ef977539821e197f1c0d777f35a773 /examples/quick/scenegraph/vulkanunderqml/vulkansquircle.cpp
parent95d1167f583c7fbac57e6c237a73b9d9afee8f71 (diff)
Use QSGRendererInterface::OpenGL in documentation and examples
QSGRendererInterface::OpenGLRhi is only an (undocumented) alias to ...::OpenGL, so let's use that instead. Amends 0b2311a62b25c Change-Id: I4acdd39dc1d9b75bed5c474667a43b4ad86e7f47 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit e2138561df3562c19000af24d43659090c19167a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/quick/scenegraph/vulkanunderqml/vulkansquircle.cpp')
-rw-r--r--examples/quick/scenegraph/vulkanunderqml/vulkansquircle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/scenegraph/vulkanunderqml/vulkansquircle.cpp b/examples/quick/scenegraph/vulkanunderqml/vulkansquircle.cpp
index c516489efa..082303d3b3 100644
--- a/examples/quick/scenegraph/vulkanunderqml/vulkansquircle.cpp
+++ b/examples/quick/scenegraph/vulkanunderqml/vulkansquircle.cpp
@@ -205,7 +205,7 @@ void SquircleRenderer::frameStart()
QSGRendererInterface *rif = m_window->rendererInterface();
// We are not prepared for anything other than running with the RHI and its Vulkan backend.
- Q_ASSERT(rif->graphicsApi() == QSGRendererInterface::VulkanRhi);
+ Q_ASSERT(rif->graphicsApi() == QSGRendererInterface::Vulkan);
if (m_vert.isEmpty())
prepareShader(VertexStage);