clray

diff src/clray.cc @ 41:057b8575a1c1

- changed the membuffer into an imagebuffer for the non-GL/CL-interop case - fixed the segfault
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 27 Aug 2010 20:39:55 +0100
parents 1bcbb53b3505
children f9eec11e5acc
line diff
     1.1 --- a/src/clray.cc	Fri Aug 27 19:00:14 2010 +0100
     1.2 +++ b/src/clray.cc	Fri Aug 27 20:39:55 2010 +0100
     1.3 @@ -135,13 +135,14 @@
     1.4  
     1.5  void cleanup()
     1.6  {
     1.7 -	printf("destroying renderer...\n");
     1.8 +	printf("destroying renderer ...\n");
     1.9  	destroy_renderer();
    1.10  
    1.11 -	printf("shutting down OpenCL...\n");
    1.12 +	printf("shutting down OpenCL ...\n");
    1.13  	destroy_opencl();
    1.14  
    1.15 -	printf("done cleaning up\n");
    1.16 +	printf("cleaning up OpenGL resources ...\n");
    1.17 +	glDeleteTextures(1, &tex);
    1.18  }
    1.19  
    1.20  static Matrix4x4 mat, inv_mat, inv_trans;