path: root/src/datavisualization/engine/abstract3drenderer_p.h
diff options
authorMiikka Heikkinen <>2014-10-14 14:35:03 +0300
committerMiikka Heikkinen <>2014-10-15 09:37:17 +0300
commit91a9698b80bcb072a5ec3af69515249bac96aff5 (patch)
treedc2ffcce10e20c499addd739314ae1bda661eaba /src/datavisualization/engine/abstract3drenderer_p.h
parentd0244a84f150fe59327afa9bd59d0f9cdde72406 (diff)
Simplify context handling at cleanup.
If the context exists at renderer deletion, it is possible that it no longer has valid surface, which means it won't be possible to set it back to current if we change context for deletion cleanup. Since the current context will be one of our shared contexts anyway, there is no need to do a dummy context for cleanup unless the current context is null. Change-Id: Ibabe081742beb975ee848ccb3690703ef5b027a9 Reviewed-by: Mika Salmela <> Reviewed-by: Tomi Korpipää <>
Diffstat (limited to 'src/datavisualization/engine/abstract3drenderer_p.h')
1 files changed, 0 insertions, 2 deletions
diff --git a/src/datavisualization/engine/abstract3drenderer_p.h b/src/datavisualization/engine/abstract3drenderer_p.h
index 1857278c..38665c65 100644
--- a/src/datavisualization/engine/abstract3drenderer_p.h
+++ b/src/datavisualization/engine/abstract3drenderer_p.h
@@ -324,8 +324,6 @@ protected:
QLocale m_locale;
QPointer<QOpenGLContext> m_context; // Not owned
- QOpenGLContext *m_currentContextAtDelete; // Not owned
- QSurface *m_currentSurfaceAtDelete; // Not owned
QWindow *m_dummySurfaceAtDelete;