Originally posted by Bruno:
I’m getting an error in most of the demos., complaining about glh_genext.h!
What could be the problem ?
I e-mailed nVidia about it and I suppose they will fix it. Anyway, if you want to fix it yourself:
Go to "
vidia corporation\OpenGL SDK\include\glh\GL" and change the properties of “glext.h” so that it is not read-only anymore.
Now, edit the file.
Find the line:
typedef void (APIENTRY * PFNGLGETVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
- Change it to:
typedef void (APIENTRY * PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
Note the difference is the extra “V” between “PFNGLGETVERTEXATTRIBPOINTER” and “NVPROC”.
- Save the file.
You are done !
As a side note: some leaked drivers did define “glVertexAttribPointerNV” instead of “glVertexAttribPointervNV” (basically this “v” is creating a lot of problems ! ).
If you look at some of the examples in the SDK, you will notice that Cass is trying to load both (i.e. if loading the correct one fails, he tries to load the wrong one).
Anyway, the correct function name is “glVertexAttribPointervNV” (as specified in the “nVidia OpenGL Extensions” document) and there should be a fix in a next version of the Detonators (the latest beta available for developers still has the bug).
[This message has been edited by Eric (edited 03-07-2001).]