diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-11-06 12:26:16 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-11-06 17:53:43 +0100 |
commit | dbb0314a596a71ea61765574f3d2820108207f15 (patch) | |
tree | 984a962f94bf45f91e1f4ed5200dd5f8dd517738 /src/quick | |
parent | d316dc5686b22677384fa76ae7851db7dd50f2f7 (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.cpp | 3 |
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; } /*! |