summaryrefslogtreecommitdiffstats
path: root/softwarecontext/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'softwarecontext/context.cpp')
-rw-r--r--softwarecontext/context.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/softwarecontext/context.cpp b/softwarecontext/context.cpp
index 6b72bbfaad..33dc7e87e4 100644
--- a/softwarecontext/context.cpp
+++ b/softwarecontext/context.cpp
@@ -164,6 +164,15 @@ QSGLayer *Context::createLayer(QSGRenderContext *renderContext)
return new SoftwareLayer(renderContext);
}
+QSurfaceFormat Context::defaultSurfaceFormat() const
+{
+ QSurfaceFormat format = QSurfaceFormat::defaultFormat();
+ format.setRenderableType(QSurfaceFormat::DefaultRenderableType);
+ format.setMajorVersion(0);
+ format.setMinorVersion(0);
+ return format;
+}
+
void RenderContext::initialize(QOpenGLContext *context)
{
Q_UNUSED(context)