From 664da5529603425ff14e11ca814cb27e674cf891 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Sun, 1 Oct 2023 10:14:41 +0100 Subject: [PATCH] chore(vispy): select opengl when creating new canvas --- pyneuroml/plot/PlotMorphologyVispy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyneuroml/plot/PlotMorphologyVispy.py b/pyneuroml/plot/PlotMorphologyVispy.py index 74cd8fde..fdf53502 100644 --- a/pyneuroml/plot/PlotMorphologyVispy.py +++ b/pyneuroml/plot/PlotMorphologyVispy.py @@ -36,8 +36,6 @@ "light": {"bg": "white", "fg": "black"}, "dark": {"bg": "black", "fg": "white"}, } -# vispy: full gl+ context is required for instanced rendering -use(gl="gl+") PYNEUROML_VISPY_THEME = "light" @@ -111,6 +109,9 @@ def create_new_vispy_canvas( :type axes_width: float :returns: scene, view """ + # vispy: full gl+ context is required for instanced rendering + use(gl="gl+") + canvas = scene.SceneCanvas( keys="interactive", show=True,