New extensions in glext.h follow the pattern:
#ifndef GL_ARB_texture_rectangle
#define GL_ARB_texture_rectangle 1
#define GL_TEXTURE_RECTANGLE_ARB 0x84F5
#define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6
#define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7
#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
#endif /* GL_ARB_texture_rectangle */
Versions.h tries to declare:
const char* const GL_ARB_texture_rectangle = "GL_ARB_texture_rectangle";
Which means, if you've included glext.h before Versions.h, that the
compiler will see "const char* const 1 = ...", and rightly refuse to
continue.
The ham-fisted approach taken here is to rename the variables in
Versions.h with a leading underscore. This does sort of undermine the
comment about "better to have the compiler do spelling checks", but.
Signed-off-by:
Adam Jackson <ajax@redhat.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| Install | Loading commit data... | |
| OGLCompilersDLL | Loading commit data... | |
| SPIRV | Loading commit data... | |
| StandAlone | Loading commit data... | |
| Test | Loading commit data... | |
| glslang | Loading commit data... | |
| tools | Loading commit data... | |
| .gitattributes | Loading commit data... | |
| .gitignore | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| ChooseMSVCCRT.cmake | Loading commit data... | |
| LinuxDoAll.bash | Loading commit data... | |
| README-spirv-remap.txt | Loading commit data... | |
| README.md | Loading commit data... | |
| SetupLinux.sh | Loading commit data... | |
| StandAlone.sln | Loading commit data... | |
| StandAlone.vcxproj | Loading commit data... | |
| StandAlone.vcxproj.filters | Loading commit data... | |
| StandAlone_vs2010.sln | Loading commit data... | |
| StandAlone_vs2010.vcxproj | Loading commit data... | |
| StandAlone_vs2013.sln | Loading commit data... | |
| StandAlone_vs2013.vcxproj | Loading commit data... | |
| Todo.txt | Loading commit data... | |
| glslang.vcxproj | Loading commit data... | |
| glslang.vcxproj.filters | Loading commit data... | |
| glslang_vs2010.vcxproj | Loading commit data... | |
| glslang_vs2013.vcxproj | Loading commit data... | |
| index.php | Loading commit data... |