clray

changeset 52:55b30d8b6805

wrong filename on captured images
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 04 Sep 2010 23:57:20 +0100
parents 9c0867942612
children 54a96b738afe
files src/clray.cc src/rt.cc
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
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  	}
     2.1 --- a/src/rt.cc	Thu Sep 02 01:41:51 2010 +0100
     2.2 +++ b/src/rt.cc	Sat Sep 04 23:57:20 2010 +0100
     2.3 @@ -50,7 +50,7 @@
     2.4  static int global_size;
     2.5  
     2.6  static Light lightlist[] = {
     2.7 -	{{-8, 15, 18, 0}, {1, 1, 1, 1}}
     2.8 +	{{-0.402, 0.696, 1.713, 0}, {1, 1, 1, 1}}
     2.9  };
    2.10  
    2.11