PDA

View Full Version : glTexStorage - was not declared in this scope



sajis997
03-26-2014, 02:37 PM
I have the OpenGL driver 4.3 , but i am having the above error with the glTexStorage command.

I am using glew to access the opengl extensions

What am i missing in the process ?


Thanks

Agent D
03-26-2014, 04:38 PM
There is no "glTexStorage" function. There is, however:


glTexStorage1D (http://www.opengl.org/sdk/docs/man4/html/glTexStorage1D.xhtml)
glTexStorage2D (http://www.opengl.org/sdk/docs/man4/html/glTexStorage2D.xhtml)
glTexStorage2DMultisample (http://www.opengl.org/sdk/docs/man4/html/glTexStorage2DMultisample.xhtml)
glTexStorage3D (http://www.opengl.org/sdk/docs/man4/html/glTexStorage3D.xhtml)
glTexStorage3DMultisample (http://www.opengl.org/sdk/docs/man4/html/glTexStorage3DMultisample.xhtml)

sajis997
03-27-2014, 09:15 AM
Sorry for the typo . "glTexStorage2D" is giving me the error.

So i am rolling back to glTexImage2D.

I am using the OpenGL 4.3 core profile


Any more hint ?

mhagain
03-27-2014, 10:41 AM
What version of GLEW are you using? If it's an older one it may not have the glTexStorage* entry points at all, so this might be expected behaviour that's resolved by just upgrading your GLEW.