summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/backend/renderer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render/backend/renderer.cpp b/src/render/backend/renderer.cpp
index 4b94ce00c..e6bf0cf86 100644
--- a/src/render/backend/renderer.cpp
+++ b/src/render/backend/renderer.cpp
@@ -694,6 +694,14 @@ bool Renderer::submitRenderViews()
// If not, we have to free up the context from the previous surface
// and make the context current on the new surface
surface = renderView->surface();
+
+ // For now, if we do not have a surface, skip this renderview
+ // TODO: Investigate if it's worth providing a fallback offscreen surface
+ // to use when surface is null. Or if we should instead expose an
+ // offscreensurface to Qt3D.
+ if (!surface)
+ continue;
+
if (i != 0 && surface != previousSurface && previousSurface)
m_graphicsContext->endDrawing(boundFboId == m_graphicsContext->defaultFBO());