aboutsummaryrefslogtreecommitdiffstats
path: root/softwarecontext/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'softwarecontext/context.cpp')
-rw-r--r--softwarecontext/context.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/softwarecontext/context.cpp b/softwarecontext/context.cpp
index 7de0aa5cde..c0c4720c81 100644
--- a/softwarecontext/context.cpp
+++ b/softwarecontext/context.cpp
@@ -44,6 +44,7 @@
#include "rectanglenode.h"
#include "imagenode.h"
#include "pixmaptexture.h"
+#include "glyphnode.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QElapsedTimer>
@@ -137,6 +138,7 @@ RenderContext::RenderContext(QSGContext *ctx)
Context::Context(QObject *parent)
: QSGContext(parent)
{
+ setDistanceFieldEnabled(false);
}
QSGRectangleNode *Context::createRectangleNode()
@@ -149,6 +151,11 @@ QSGImageNode *Context::createImageNode()
return new ImageNode();
}
+QSGGlyphNode *Context::createGlyphNode(QSGRenderContext */*rc*/, bool /*preferNativeGlyphNode*/)
+{
+ return new GlyphNode();
+}
+
void RenderContext::initialize(QOpenGLContext *context)
{
QSGRenderContext::initialize(context);