From f013631527b3cc569527e9541c11b0f12c420473 Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Mon, 1 Sep 2014 16:05:38 +0200 Subject: Provide a default SurfaceFormat for our Context Since we are not using OpenGL the content of the SurfaceFormat does not matter to us. Instead it gives us a way to expose the fact that we are rendering to a raster surface. Using the OpenGLInfo API from QML allows you to check the properties of the SurfaceFormat and see that the QSurfaceFormat::RenderableType is not OpenGL or OpenGLES. Change-Id: Iac087dd89115f3455b4fb1941385352cadd2a364 Reviewed-by: Lars Knoll --- softwarecontext/context.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'softwarecontext/context.h') diff --git a/softwarecontext/context.h b/softwarecontext/context.h index 0e685fdfa9..88fe4e447f 100644 --- a/softwarecontext/context.h +++ b/softwarecontext/context.h @@ -90,8 +90,7 @@ public: virtual QSGGlyphNode *createGlyphNode(QSGRenderContext *rc, bool preferNativeGlyphNode); virtual QSGNinePatchNode *createNinePatchNode(); virtual QSGLayer *createLayer(QSGRenderContext *renderContext); - -private: + virtual QSurfaceFormat defaultSurfaceFormat() const; }; } // namespace -- cgit v1.2.3