diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-12-25 16:23:19 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-12-29 16:38:49 +0000 |
commit | fb195262ba37b3ef00854cabff437553ded97790 (patch) | |
tree | c262923d77205c94950115b7e1c5b3c4dfd602d4 /specs/scripts | |
parent | 9b1b942e37d0aba77ac412e5e4e9f5aa97edf5e8 (diff) |
specs: Aggregate and sort GL_EXT_direct_state_access functions by name.
Otherwise it is impossible to tell which are missing or not, as order
doesn't match Khronos gl.xml's.
(We should probably do this for all extensions too.)
Issue #307.
Diffstat (limited to 'specs/scripts')
-rwxr-xr-x | specs/scripts/xml2api.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/specs/scripts/xml2api.py b/specs/scripts/xml2api.py index 33c7667f..557c9aca 100755 --- a/specs/scripts/xml2api.py +++ b/specs/scripts/xml2api.py @@ -119,10 +119,16 @@ def processRequire(prototypes, node, filterName): if not commands: return print ' # %s' % nodeName - for command in commands: - functionName = command.get('name') + + functionNames = [command.get('name') for command in commands] + + if nodeName == 'GL_EXT_direct_state_access': + functionNames.sort() + + for functionName in functionNames: prototype = prototypes[functionName] print ' %s,' % prototype + print |