PDA

View Full Version : unresolved symbol for glTexImage3D



overseb
07-06-2009, 04:31 AM
hi all
I tried to use 3D texture in my app but I've got this error :
"error LNK2001: unresolved external symbol _glTexImage3D".
I use visual 2008.

Well I surely do not have the correct ogl version to use 3D texture, but I have updated my drivers, and 3D textures are pretty old no ?!

So how to solve this problem ?
thank you

overseb
07-06-2009, 04:43 AM
ok I think I have the answer
glTexture3D is an extension and I must get the function pointer with a glGetProcAdress function
"glTexImage3D = (PFNGLTEXIMAGE3DPROC) wglGetProcAddress("glTexImage3D");"

sorry for the post

V-man
07-06-2009, 07:08 AM
This question comes up every day.
Please read the Wiki.
http://www.opengl.org/wiki