Navigation Menu

Skip to content

Commit

Permalink
Make particle example work without PyOpenGL_accelerate
Browse files Browse the repository at this point in the history
vbo.buffer nor vbo.buffers aren't normally used by external code
The normal way to get the ID of the VBO is int(vbo)
See #196
  • Loading branch information
mamat-rahmat committed Nov 20, 2018
1 parent 0161977 commit dc6e547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/gl_particle_animation.py
Expand Up @@ -143,8 +143,8 @@ def on_display():
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,
Expand Down

0 comments on commit dc6e547

Please sign in to comment.