PDA

View Full Version : Error in new extension header files



overlay
08-11-2008, 06:49 PM
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
08-11-2008, 07:06 PM
All this tokens have the same value, so there is no mistake.

overlay
08-11-2008, 07:52 PM
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.

3B
08-12-2008, 12:34 PM
The new .spec/.h files also seem a bit short on new functions...