Fix generation of redundant typedefs.

macos/v1.5.9
Eric Anholt 11 years ago
parent 60ea7c38a2
commit 0e7b9c0939
  1. 7
      src/gen_dispatch.py

@ -172,6 +172,13 @@ class Generator(object):
if 'name' in t.attrib and t.attrib['name'] not in {'GLhandleARB'}: if 'name' in t.attrib and t.attrib['name'] not in {'GLhandleARB'}:
continue continue
# The gles1/gles2-specific types are redundant
# declarations, and the different types used for them (int
# vs int32_t) caused problems on win32 builds.
api = t.get('api')
if api:
continue
if t.text is not None: if t.text is not None:
self.typedefs += t.text self.typedefs += t.text

Loading…
Cancel
Save