clray

diff src/clray.cc @ 40:1bcbb53b3505

segfault on exit?
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 27 Aug 2010 19:00:14 +0100
parents 980bc07be868
children 057b8575a1c1
line diff
     1.1 --- a/src/clray.cc	Fri Aug 27 18:30:09 2010 +0100
     1.2 +++ b/src/clray.cc	Fri Aug 27 19:00:14 2010 +0100
     1.3 @@ -135,7 +135,13 @@
     1.4  
     1.5  void cleanup()
     1.6  {
     1.7 +	printf("destroying renderer...\n");
     1.8  	destroy_renderer();
     1.9 +
    1.10 +	printf("shutting down OpenCL...\n");
    1.11 +	destroy_opencl();
    1.12 +
    1.13 +	printf("done cleaning up\n");
    1.14  }
    1.15  
    1.16  static Matrix4x4 mat, inv_mat, inv_trans;