Whoever maintains the following files:
http://opengl.org/registry/api/glext.h
http://opengl.org/registry/api/enum.spec
http://opengl.org/registry/api/enumext.spec
Please fix them at the line that defines:
COMPARE_REF_TO_TEXTURE with the value of GL_COMPARE_R_TO_TEXTURE_ARB
It should be defined with the value of GL_COMPARE_R_TO_TEXTURE.
Zengar
August 11, 2008, 6:06pm
2
All this tokens have the same value, so there is no mistake.
The ARB tokens are defined after the core tokens. It is not a problem for the generated .h file as the C preprocessor supports forward definition.
line 482 is:
#ifndef GL_VERSION_3_0
#define GL_COMPARE_REF_TO_TEXTURE GL_COMPARE_R_TO_TEXTURE_ARB
after (and only after), at line 796:
#ifndef GL_ARB_shadow
#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C
#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D
#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E
#endif
But it can be a problem for anyone that wants to write an OpenGL binding from enum.spec or glext.h ( =parsing them) for another language than C preprocessor that does not support forward definitions.
3B1
August 12, 2008, 11:34am
4
The new .spec/.h files also seem a bit short on new functions…