From 3ab16a1ac79e0781563c7564cd678a8c87474486 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 30 Jun 2019 19:13:36 +0200 Subject: Move OpenCL buffers into Memory class --- ldc_2d_gl_interop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldc_2d_gl_interop.py') diff --git a/ldc_2d_gl_interop.py b/ldc_2d_gl_interop.py index 1c3439f..e5ea866 100644 --- a/ldc_2d_gl_interop.py +++ b/ldc_2d_gl_interop.py @@ -138,13 +138,13 @@ def on_display(): glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) - lattice.gl_moments.bind() + lattice.memory.gl_moments.bind() glEnableClientState(GL_VERTEX_ARRAY) shaders.glUseProgram(shader_program) glUniformMatrix4fv(projection_id, 1, False, numpy.asfortranarray(projection)) - glVertexPointer(4, GL_FLOAT, 0, lattice.gl_moments) + glVertexPointer(4, GL_FLOAT, 0, lattice.memory.gl_moments) glPointSize(cells_per_pixel) glDrawArrays(GL_POINTS, 0, lattice.geometry.volume) -- cgit v1.2.3