arrayfire / forge

High Performance Visualization
221 stars 48 forks source link

Avoid quit with segmentation fault #244

Closed 3togo closed 1 year ago

3togo commented 1 year ago

Change(s) reinitilalize context to blank before quitting

releaseGLBuffer(handle);
context = cl::Context();

Current Behavior without reinitialization, the program will quit with segmentation fault https://github.com/arrayfire/forge/issues/243

New Behavior quit without segmentation fault