Skip to content

Commit

Permalink
Merge pull request #6 from oncer/half_aliases_fix
Browse files Browse the repository at this point in the history
Half aliases fix
  • Loading branch information
nephatrine committed Nov 11, 2015
2 parents d389757 + 4509aaf commit 198697b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gen_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ def write_function_ptr_resolver(self, func):
'glBindVertexArrayAPPLE' : 'glBindVertexArray',
'glBindFramebuffer' : 'glBindFramebufferEXT',
'glBindFramebufferEXT' : 'glBindFramebuffer',
'glBindRenderbuffer' : 'glBindRenderbufferEXT',
'glBindRenderbufferEXT' : 'glBindRenderbuffer',
}
if func.name in half_aliases:
alias_func = self.functions[half_aliases[func.name]]
Expand Down Expand Up @@ -632,9 +634,10 @@ def write_provider_enum_strings(self):
assert(offset < 65536)

self.outln('static const uint16_t enum_string_offsets[] = {')
self.outln(' -1, /* {0}_provider_terminator, unused */'.format(self.target))
for human_name in sorted_providers:
enum = self.provider_enum[human_name]
self.outln(' [{0}] = {1},'.format(enum, self.enum_string_offset[human_name]))
self.outln(' {1}, /* {0} */'.format(enum, self.enum_string_offset[human_name]))
self.outln('};')
self.outln('')

Expand Down Expand Up @@ -769,7 +772,7 @@ def write_source(self, file):

self.outln('static struct dispatch_table resolver_table = {')
for func in self.sorted_functions:
self.outln(' .{0} = epoxy_{0}_dispatch_table_rewrite_ptr,'.format(func.wrapped_name))
self.outln(' epoxy_{0}_dispatch_table_rewrite_ptr, /* {0} */'.format(func.wrapped_name))
self.outln('};')
self.outln('')

Expand Down

0 comments on commit 198697b

Please sign in to comment.