diff options
Diffstat (limited to 'channel_2d_gl_interop.py')
-rw-r--r-- | channel_2d_gl_interop.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channel_2d_gl_interop.py b/channel_2d_gl_interop.py index 3ca623c..377bbd0 100644 --- a/channel_2d_gl_interop.py +++ b/channel_2d_gl_interop.py @@ -171,6 +171,7 @@ projection = get_projection() particles = Particles( lattice.context, + lattice.queue, lattice.memory.float_type, numpy.mgrid[ lattice.geometry.size_x//20:2*lattice.geometry.size_x//20:100j, @@ -184,7 +185,7 @@ def on_display(): lattice.collect_gl_moments() for i in range(0,updates_per_frame): - lattice.update_gl_particles(particles) + lattice.update_gl_particles(particles, aging = False) lattice.sync() |