PDA

View Full Version : Problem while using glTexSubImage3D



yasirsaleem
31st March 2011, 14:16
Hi.
I am using qt 4.7.1 and qt-creator 2.0.1. I am working on 3d visualization. There is a project that is made in OpenGL. It works fine in visual studio(OpenGL). Now I am integrating it to Qt. I have integrated alot but now I stuck while using "glTexImage3D".
My program runs fine unless I use the statement


glTexImage3D(GL_TEXTURE_3D, 0, GL_ALPHA16, nx, ny, nz, 0, GL_ALPHA, GL_UNSIGNED_SHORT, NULL);


My program compiles fine when I use this statement but when I run it I got this error:


exited with code -1073741515

Kindly help me in this matter.