From 0e7b9c09397304e745a3b8a9f71f660209ca8beb Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 6 Dec 2013 17:31:30 -0800 Subject: [PATCH] Fix generation of redundant typedefs. --- src/gen_dispatch.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gen_dispatch.py b/src/gen_dispatch.py index 525d425..537ae80 100755 --- a/src/gen_dispatch.py +++ b/src/gen_dispatch.py @@ -172,6 +172,13 @@ class Generator(object): if 'name' in t.attrib and t.attrib['name'] not in {'GLhandleARB'}: 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: self.typedefs += t.text