Elias OpenGL
07-29-2010, 01:00 PM
Hi
I need help you.
I am recovering pixels value of a image, 16 bits, single value, when I load a data to graphics card, I have a segmentation error.
My code is:
glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, width, heigth, depth, 0, GL_LUMINANCE,GL_UNSIGNED_SHORT , vol);
this parameters are, width, heigth, dept, and vol,
any suggestion? I was intended to load the data as LUMINANCE or INTENSITY, but also gives me error.
Thanks,
I need help you.
I am recovering pixels value of a image, 16 bits, single value, when I load a data to graphics card, I have a segmentation error.
My code is:
glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, width, heigth, depth, 0, GL_LUMINANCE,GL_UNSIGNED_SHORT , vol);
this parameters are, width, heigth, dept, and vol,
any suggestion? I was intended to load the data as LUMINANCE or INTENSITY, but also gives me error.
Thanks,