From cadb4e815a9f1083d1dcb2db2fda6a629dc75d4d Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Mon, 23 Sep 2019 10:35:29 +0300 Subject: [PATCH] Blacklist GL_SGIX_fragment_specular_lighting This extension conflicts with GL_SGIX_fragment_lighting from the upstream glext.h. (That extension doesn't seem to be documented in any extension registry, but only seems present in glext.h.) These two extensions have overlapping function names, but GL_SGIX_fragment_specular_lighting has got incorrect use of const on pointer arguments, causing compiler errors about typedef redefinition with different types, if both glew.h and glext.h are included. E.g. the function glGetFragmentMaterialivSGIX is declared as glGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params); in glext.h, but is described as void GetFragmentMaterialivSGIX(enum face, enum pname, const int *data); in SGIX_fragment_specular_lighting.txt. Out of these two, SGIX_fragment_specular_lighting.txt clearly is wrong (incomplete and probably never got used as such) as a getter can't use a const pointer for writing the output parameters. --- auto/blacklist | 1 + 1 file changed, 1 insertion(+) diff --git a/auto/blacklist b/auto/blacklist index 6e57351..0ae2c57 100644 --- a/auto/blacklist +++ b/auto/blacklist @@ -7,6 +7,7 @@ EXT/object_space_tess.txt SGI/filter4_parameters.txt SGIS/SGIS_texture_color_mask.txt SGIX/SGIX_dmbuffer.txt +SGIX/SGIX_fragment_specular_lighting.txt SGIX/SGIX_instruments.txt SGIX/SGIX_video_source.txt SGIX/SGIX_hyperpipe_group.txt