@@ -122,12 +122,37 @@ printExtensions api registry = do
122122 else [(ProfileName " core" , modSuff)] -- the actual profile doesn't matter
123123 ext = L. intercalate " _" extWords
124124 comment = [" The <https://www.opengl.org/registry/specs/" ++
125- vendor ++ " /" ++ ext ++ " .txt " ++
125+ fixRegistryPath ( vendor ++ " /" ++ ext) ++ " .txt " ++
126126 vendor ++ " _" ++ ext ++ " > extension." ]
127127 CM. forM_ profileAndModuleNameSuffix $ \ (prof, moduleNameSuffix) ->
128128 printExtension (Just vendor) moduleNameSuffix comment $
129129 executeModifications api prof registry mods
130130
131+ fixRegistryPath :: String -> String
132+ fixRegistryPath path = case path of
133+ " 3DFX/multisample" -> " 3DFX/3dfx_multisample"
134+ " EXT/debug_label" -> " EXT/EXT_debug_label"
135+ " EXT/debug_marker" -> " EXT/EXT_debug_marker"
136+ " EXT/multisample" -> " EXT/wgl_multisample"
137+ " EXT/texture_cube_map" -> " ARB/texture_cube_map"
138+ " INGR/blend_func_separate" -> " EXT/blend_func_separate"
139+ " KHR/blend_equation_advanced_coherent" -> " KHR/blend_equation_advanced"
140+ " KHR/texture_compression_astc_ldr" -> " KHR/texture_compression_astc_hdr"
141+ " NV/blend_equation_advanced_coherent" -> " NV/blend_equation_advanced"
142+ " NVX/conditional_render" -> " NVX/nvx_conditional_render"
143+ " OES/byte_coordinates" -> " OES/OES_byte_coordinates"
144+ " OES/compressed_paletted_texture" -> " OES/OES_compressed_paletted_texture"
145+ " OES/fixed_point" -> " OES/OES_fixed_point"
146+ " OES/query_matrix" -> " OES/OES_query_matrix"
147+ " OES/read_format" -> " OES/OES_read_format"
148+ " OES/single_precision" -> " OES/OES_single_precision"
149+ " SGIS/fog_function" -> " SGIS/fog_func"
150+ " SGIS/point_parameters" -> " EXT/point_parameters"
151+ " SGIX/fragment_lighting" -> " EXT/fragment_lighting"
152+ " SGIX/pixel_texture" -> " SGIX/sgix_pixel_texture"
153+ " SGIX/texture_add_env" -> " SGIX/texture_env_add"
154+ _ -> path
155+
131156isProfileDependent :: Modification -> Bool
132157isProfileDependent = DM. isJust . modificationProfile
133158
0 commit comments