arrayfire / forge

High Performance Visualization
221 stars 48 forks source link

reinitialzie context to avoid opencl examples to quit with segmentation fault #245

Closed 3togo closed 3 months ago

3togo commented 1 year ago

reinitialzie context to avoid opencl examples to quit with segmentation fault

Change(s) add context = cl::Context(); immediately after releaseGLBuffer(handle);

Current Behavior quit with segmentation fault https://github.com/arrayfire/forge/issues/243

New Behavior quit without segmentation fault