Commits

Jason McKesson committed a4795ce

Fixed all missing WGL prefixes. And all missing prefixes entirely.

  • Participants
  • Parent commits 0f9f3a3
  • Branches newspec-mods

Comments (0)

Files changed (2)

_BuildDataFromXml.lua

 	CollateEnumerators(ret.enumerators, allEnums, features,
 		extensions, feature_api, ext_support)
 	for _, enum in ipairs(ret.enumerators) do
-		enum.name = RemovePrefix(enum.name, enum_prefix)
+		enum.name = assert(RemovePrefix(enum.name, enum_prefix), enum.name .. " No prefix found")
 		if(enum.extensions) then
 			for ix, extName in ipairs(enum.extensions) do
 				enum.extensions[ix] = RemovePrefix(extName, enum_prefix)
 	local typeRefs = CollateFunctions(ret.funcData.functions, allFuncs, features,
 		extensions, feature_api, ext_support)
 	for _, func in ipairs(ret.funcData.functions) do
-		func.name = RemovePrefix(func.name, func_prefix)
+		func.name = assert(RemovePrefix(func.name, func_prefix), func.name .. " no prefix found.")
 		if(func.extensions) then
 			for ix, extName in ipairs(func.extensions) do
 				func.extensions[ix] = RemovePrefix(extName, enum_prefix)

newglspecs/wgl.xml

         <enum value="0x2042"        name="WGL_COVERAGE_SAMPLES_NV"/>
         <enum value="0x2042"        name="WGL_SAMPLES_ARB"/>
         <enum value="0x2042"        name="WGL_SAMPLES_EXT"/>
-        <enum value="0x2043"        name="ERROR_INVALID_PIXEL_TYPE_ARB"/>
-        <enum value="0x2043"        name="ERROR_INVALID_PIXEL_TYPE_EXT"/>
+        <enum value="0x2043"        name="WGL_ERROR_INVALID_PIXEL_TYPE_ARB"/>
+        <enum value="0x2043"        name="WGL_ERROR_INVALID_PIXEL_TYPE_EXT"/>
         <enum value="0x2044"        name="WGL_GENLOCK_SOURCE_MULTIVIEW_I3D"/>
         <enum value="0x2045"        name="WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D"/>
         <enum value="0x2046"        name="WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D"/>
         <enum value="0x2051"        name="WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D"/>
         <enum value="0x2052"        name="WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D"/>
         <enum value="0x2053"        name="WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D"/>
-        <enum value="0x2054"        name="ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB"/>
+        <enum value="0x2054"        name="WGL_ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB"/>
         <enum value="0x2055"        name="WGL_STEREO_EMITTER_ENABLE_3DL"/>
         <enum value="0x2056"        name="WGL_STEREO_EMITTER_DISABLE_3DL"/>
         <enum value="0x2057"        name="WGL_STEREO_POLARITY_NORMAL_3DL"/>
         <enum value="0x2092"        name="WGL_CONTEXT_MINOR_VERSION_ARB"/>
         <enum value="0x2093"        name="WGL_CONTEXT_LAYER_PLANE_ARB"/>
         <enum value="0x2094"        name="WGL_CONTEXT_FLAGS_ARB"/>
-        <enum value="0x2095"        name="ERROR_INVALID_VERSION_ARB"/>
-        <enum value="0x2096"        name="ERROR_INVALID_PROFILE_ARB"/>
+        <enum value="0x2095"        name="WGL_ERROR_INVALID_VERSION_ARB"/>
+        <enum value="0x2096"        name="WGL_ERROR_INVALID_PROFILE_ARB"/>
             <unused start="0x2097" end="0x209F"/>
     </enums>
 
         </extension>
         <extension name="WGL_ARB_make_current_read" supported="wgl">
             <require>
-                <enum name="ERROR_INVALID_PIXEL_TYPE_ARB"/>
-                <enum name="ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB"/>
+                <enum name="WGL_ERROR_INVALID_PIXEL_TYPE_ARB"/>
+                <enum name="WGL_ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB"/>
                 <command name="wglMakeContextCurrentARB"/>
                 <command name="wglGetCurrentReadDCARB"/>
             </require>
                 <enum name="WGL_CONTEXT_MINOR_VERSION_ARB"/>
                 <enum name="WGL_CONTEXT_LAYER_PLANE_ARB"/>
                 <enum name="WGL_CONTEXT_FLAGS_ARB"/>
-                <enum name="ERROR_INVALID_VERSION_ARB"/>
+                <enum name="WGL_ERROR_INVALID_VERSION_ARB"/>
                 <command name="wglCreateContextAttribsARB"/>
             </require>
         </extension>
                 <enum name="WGL_CONTEXT_PROFILE_MASK_ARB"/>
                 <enum name="WGL_CONTEXT_CORE_PROFILE_BIT_ARB"/>
                 <enum name="WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB"/>
-                <enum name="ERROR_INVALID_PROFILE_ARB"/>
+                <enum name="WGL_ERROR_INVALID_PROFILE_ARB"/>
             </require>
         </extension>
         <extension name="WGL_ARB_create_context_robustness" supported="wgl">
         </extension>
         <extension name="WGL_EXT_make_current_read" supported="wgl">
             <require>
-                <enum name="ERROR_INVALID_PIXEL_TYPE_EXT"/>
+                <enum name="WGL_ERROR_INVALID_PIXEL_TYPE_EXT"/>
                 <command name="wglMakeContextCurrentEXT"/>
                 <command name="wglGetCurrentReadDCEXT"/>
             </require>
         </extension>
         <extension name="WGL_NV_gpu_affinity" supported="wgl">
             <require>
-                <enum name="ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV"/>
-                <enum name="ERROR_MISSING_AFFINITY_MASK_NV"/>
+                <enum name="WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV"/>
+                <enum name="WGL_ERROR_MISSING_AFFINITY_MASK_NV"/>
                 <command name="wglEnumGpusNV"/>
                 <command name="wglEnumGpuDevicesNV"/>
                 <command name="wglCreateAffinityDCNV"/>