summaryrefslogtreecommitdiff
path: root/external/epoxy/Wint-conversion.patch
blob: b638dfad806fc7a232d5561f745e1132e8f4e104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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):