aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgdefaultcontext.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-05-06 15:43:36 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-02 15:44:25 +0200
commit2efc801a13c775cd2377001fe3362e94edc0e97b (patch)
treee01b814e07d095907bb019b041ec36dc68c057dc /src/quick/scenegraph/qsgdefaultcontext.cpp
parentf15f4704c4a196ad44331b66a3d1d703f168428e (diff)
Remove layer and dist.field glyph cache OpenGL versions
Task-number: QTBUG-79268 Change-Id: I16123a8a49d17e3ffdd5cbcfbebcd8bfa46e648c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgdefaultcontext.cpp')
-rw-r--r--src/quick/scenegraph/qsgdefaultcontext.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/quick/scenegraph/qsgdefaultcontext.cpp b/src/quick/scenegraph/qsgdefaultcontext.cpp
index f7701d8f7f..5204c3ecfc 100644
--- a/src/quick/scenegraph/qsgdefaultcontext.cpp
+++ b/src/quick/scenegraph/qsgdefaultcontext.cpp
@@ -45,7 +45,6 @@
#include <QtQuick/private/qsgdefaultglyphnode_p.h>
#include <QtQuick/private/qsgdistancefieldglyphnode_p.h>
#include <QtQuick/private/qsgdistancefieldglyphnode_p_p.h>
-#include <QtQuick/private/qsgopengllayer_p.h>
#include <QtQuick/private/qsgrhisupport_p.h>
#include <QtQuick/private/qsgrhilayer_p.h>
#include <QtQuick/private/qsgdefaultrendercontext_p.h>
@@ -222,11 +221,7 @@ QSGGlyphNode *QSGDefaultContext::createGlyphNode(QSGRenderContext *rc, bool pref
QSGLayer *QSGDefaultContext::createLayer(QSGRenderContext *renderContext)
{
- auto rc = static_cast<const QSGDefaultRenderContext *>(renderContext);
- if (rc->rhi())
- return new QSGRhiLayer(renderContext);
- else
- return new QSGOpenGLLayer(renderContext);
+ return new QSGRhiLayer(renderContext);
}
QSurfaceFormat QSGDefaultContext::defaultSurfaceFormat() const