Skip to content

Commit

Permalink
Merge pull request #259 from mamat-rahmat/patch-particle
Browse files Browse the repository at this point in the history
Make particle example work without PyOpenGL_accelerate
  • Loading branch information
inducer committed Nov 20, 2018
2 parents 0161977 + dc6e547 commit 5ab4138
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 5ab4138

Please sign in to comment.