]> git.tdb.fi Git - libs/gl.git/blob - gl.fixes.xml
Update gl.xml to latest version
[libs/gl.git] / gl.fixes.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <registry>
3     <!-- The gl.xml file does not contain enough information to make all the
4     connections between extension and core functions correctly.  This file
5     attempts to rectify these problems. -->
6
7     <commands>
8         <!-- The EXT versions allow user-generated names; core versions don't.
9         Since we use GL-generated names, it's safe to alias them. -->
10         <command>
11             <proto><name>glBindFramebufferEXT</name></proto>
12             <alias name="glBindFramebuffer" />
13         </command>
14         <command>
15             <proto><name>glBindRenderbufferEXT</name></proto>
16             <alias name="glBindRenderbuffer" />
17         </command>
18
19         <!-- ARB_shader_objects function names got changed when promoted to
20         core. -->
21         <command>
22             <proto><name>glDeleteObjectARB</name></proto>
23             <alias name="glDeleteShader" />
24             <alias name="glDeleteProgram" />
25         </command>
26         <command>
27             <proto><name>glGetInfoLogARB</name></proto>
28             <alias name="glGetShaderInfoLog" />
29             <alias name="glGetProgramInfoLog" />
30         </command>
31         <command>
32             <proto><name>glGetObjectParameterivARB</name></proto>
33             <alias name="glGetShaderiv" />
34             <alias name="glGetProgramiv" />
35         </command>
36
37         <!-- This alias is missing because the ARB version returns GLhandleARB,
38         which is typedef'd as a pointer on OS X.  It could cause problems on
39         64-bit macs with shaders only available through the extension. -->
40         <command>
41             <proto><name>glGetAttachedObjectsARB</name></proto>
42             <alias name="glGetAttachedShaders" />
43         </command>
44     </commands>
45
46     <enums>
47         <!-- These error codes weren't promoted to core with the rest of
48         EXT_framebuffer_object.  There's no harm in taking them in since
49         they're not passed to GL at any point. -->
50         <enum value="0x8CD9" name="GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS"/>
51         <enum value="0x8CDA" name="GL_FRAMEBUFFER_INCOMPLETE_FORMATS"/>
52     </enums>
53
54     <feature api="gl" name="MSPGL">
55         <require>
56             <enum name="GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS" />
57             <enum name="GL_FRAMEBUFFER_INCOMPLETE_FORMATS" />
58         </require>
59     </feature>
60
61     <feature api="gl" name="MSPGL_REMOVE">
62         <remove>
63             <!-- These have no counterparts in the core version of
64             ARB_shader_objects. -->
65             <command name="glGetHandleARB" />
66             <command name="glGetObjectParameterfvARB" />
67             <enum name="GL_PROGRAM_OBJECT_ARB" />
68             <enum name="GL_SHADER_OBJECT_ARB" />
69             <enum name="GL_OBJECT_TYPE_ARB" />
70
71             <!-- Ignore this, as it comes from ARB_vertex_program and I'm not
72             sure if it works with ARB_shader_objects. -->
73             <command name="glIsProgramARB" />
74         </remove>
75     </feature>
76
77     <extensions>
78         <!-- Some functions mentioned in GL_ARB_uniform_buffer_object
79         specification are missing from gl.xml. -->
80         <extension name="GL_ARB_uniform_buffer_object" supported="gl|glcore">
81             <require>
82                 <command name="glBindBufferRange" />
83                 <command name="glBindBufferBase" />
84             </require>
85         </extension>
86     </extensions>
87 </registry>