qvolray

changeset 10:9d2396738b60

GL_RGBA32F -> GL_RGBA32F_ARB
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 08 Apr 2012 14:31:03 +0300
parents a6765984e057
children 8990b5d2c7fe 68c6eb619d1c
files src/volume.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/src/volume.c	Sun Apr 08 07:11:54 2012 +0300
     1.2 +++ b/src/volume.c	Sun Apr 08 14:31:03 2012 +0300
     1.3 @@ -91,7 +91,7 @@
     1.4  	}
     1.5  
     1.6  	/* calculate gradients */
     1.7 -	/*calc_gradients(voxels, vol->sz[0], vol->sz[1], vol->sz[2]);*/
     1.8 +	calc_gradients(voxels, vol->sz[0], vol->sz[1], vol->sz[2]);
     1.9  
    1.10  	/* create the volume texture */
    1.11  	glGenTextures(1, &vol->tex_vol);
    1.12 @@ -101,7 +101,7 @@
    1.13  	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
    1.14  	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
    1.15  	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
    1.16 -	glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA32F, vol->sz[0], vol->sz[1], vol->sz[2], 0,
    1.17 +	glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA32F_ARB, vol->sz[0], vol->sz[1], vol->sz[2], 0,
    1.18  			GL_RGBA, GL_FLOAT, voxels);
    1.19  
    1.20  	/* ... and destroy our copy */