aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-11-06 12:26:16 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-11-06 17:53:43 +0100
commitdbb0314a596a71ea61765574f3d2820108207f15 (patch)
tree984a962f94bf45f91e1f4ed5200dd5f8dd517738 /src/quick
parentd316dc5686b22677384fa76ae7851db7dd50f2f7 (diff)
Use suffixless enum value in graphicsApi check in QQuickFbo
::OpenGL and ::OpenGLRhi are the same thing now. Change-Id: Ic905eb868a7a62d32261bdc025b20e182ed6db7c Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick')
-rw-r--r--src/quick/items/qquickframebufferobject.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/quick/items/qquickframebufferobject.cpp b/src/quick/items/qquickframebufferobject.cpp
index 4647531e7e..7311d0d148 100644
--- a/src/quick/items/qquickframebufferobject.cpp
+++ b/src/quick/items/qquickframebufferobject.cpp
@@ -280,8 +280,7 @@ public:
static inline bool isOpenGL(QSGRenderContext *rc)
{
QSGRendererInterface *rif = rc->sceneGraphContext()->rendererInterface(rc);
- return rif && (rif->graphicsApi() == QSGRendererInterface::OpenGL
- || rif->graphicsApi() == QSGRendererInterface::OpenGLRhi);
+ return rif && rif->graphicsApi() == QSGRendererInterface::OpenGL;
}
/*!