clray

diff src/clray.cc @ 52:55b30d8b6805

wrong filename on captured images
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 04 Sep 2010 23:57:20 +0100
parents d3c46803242e
children 6a30f27fa1e6 e3b4457dc4d2
line diff
     1.1 --- a/src/clray.cc	Thu Sep 02 01:41:51 2010 +0100
     1.2 +++ b/src/clray.cc	Sat Sep 04 23:57:20 2010 +0100
     1.3 @@ -382,7 +382,7 @@
     1.4  	float *pixels = new float[4 * xsz * ysz];
     1.5  	glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_FLOAT, pixels);
     1.6  
     1.7 -	bool res = write_ppm("shot.ppm", pixels, xsz, ysz);
     1.8 +	bool res = write_ppm(fname, pixels, xsz, ysz);
     1.9  	if(!res) {
    1.10  		num--;
    1.11  	}