diff --git a/examples/gl_particle_animation.py b/examples/gl_particle_animation.py index 6db8e2a3f6c000261e72f5bbc70234e55e7e6a64..dd2f05c24686cc9cd777923b45de8963ed1f58b3 100644 --- a/examples/gl_particle_animation.py +++ b/examples/gl_particle_animation.py @@ -143,8 +143,8 @@ cl_velocity = cl.Buffer(context, mf.COPY_HOST_PTR, hostbuf=np_velocity) cl_start_position = cl.Buffer(context, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=np_position) cl_start_velocity = cl.Buffer(context, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=np_velocity) -cl_gl_position = cl.GLBuffer(context, mf.READ_WRITE, int(gl_position.buffer)) -cl_gl_color = cl.GLBuffer(context, mf.READ_WRITE, int(gl_color.buffer)) +cl_gl_position = cl.GLBuffer(context, mf.READ_WRITE, int(gl_position)) +cl_gl_color = cl.GLBuffer(context, mf.READ_WRITE, int(gl_color)) kernel = """__kernel void particle_fountain(__global float4* position, __global float4* color,