diff options
Diffstat (limited to 'external/epoxy/Wint-conversion.patch')
-rw-r--r-- | external/epoxy/Wint-conversion.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/external/epoxy/Wint-conversion.patch b/external/epoxy/Wint-conversion.patch new file mode 100644 index 0000000000..b638dfad80 --- /dev/null +++ b/external/epoxy/Wint-conversion.patch @@ -0,0 +1,26 @@ +--- src/gen_dispatch.py ++++ src/gen_dispatch.py +@@ -123,20 +123,16 @@ + # + # We retain those aliases. In the x86_64 ABI, the first 6 + # args are stored in 64-bit registers, so the calls end up +- # being the same despite the different types. We just need to +- # add a cast to uintptr_t to shut up the compiler. ++ # being the same despite the different types. + if arg_type == 'GLhandleARB': + assert len(self.args) < 6 +- arg_list_name = '(uintptr_t)' + arg_name +- else: +- arg_list_name = arg_name + + self.args.append((arg_type, arg_name)) + if self.args_decl == 'void': +- self.args_list = arg_list_name ++ self.args_list = arg_name + self.args_decl = arg_type + ' ' + arg_name + else: +- self.args_list += ', ' + arg_list_name ++ self.args_list += ', ' + arg_name + self.args_decl += ', ' + arg_type + ' ' + arg_name + + def add_provider(self, condition, loader, condition_name): |