diff options
author | marha <marha@users.sourceforge.net> | 2011-06-03 08:53:19 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-06-03 08:53:19 +0200 |
commit | ca73c8a1e248a40497f6ca28d238d518140ba440 (patch) | |
tree | 86de271d0f7ccf95ced19c28417fb25cdcfa5e98 /mesalib/src | |
parent | 6aea3a7470dfb2c513378b82c27f0ad87afda7f3 (diff) | |
download | vcxsrv-ca73c8a1e248a40497f6ca28d238d518140ba440.tar.gz vcxsrv-ca73c8a1e248a40497f6ca28d238d518140ba440.tar.bz2 vcxsrv-ca73c8a1e248a40497f6ca28d238d518140ba440.zip |
Cleaned output
Diffstat (limited to 'mesalib/src')
-rw-r--r-- | mesalib/src/mapi/glapi/gen/glX_proto_recv.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mesalib/src/mapi/glapi/gen/glX_proto_recv.py b/mesalib/src/mapi/glapi/gen/glX_proto_recv.py index 9b2f66af0..10b4e368d 100644 --- a/mesalib/src/mapi/glapi/gen/glX_proto_recv.py +++ b/mesalib/src/mapi/glapi/gen/glX_proto_recv.py @@ -277,7 +277,10 @@ class PrintGlxDispatchFunctions(glX_proto_common.glx_print_proto): if param.is_image():
offset = f.offset_of( param.name )
- print '%s %s const %s = (%s) (%s(pc + %s));' % (indent, type_string, param.name, type_string, cond, offset)
+ if cond:
+ print '%s %s const %s = (%s) (%s(pc + %s));' % (indent, type_string, param.name, type_string, cond, offset)
+ else:
+ print '%s %s const %s = (%s) (pc + %s);' % (indent, type_string, param.name, type_string, offset)
if param.depth:
print '%s __GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc);' % (indent)
@@ -364,8 +367,9 @@ class PrintGlxDispatchFunctions(glX_proto_common.glx_print_proto): else:
for param in f.parameterIterateGlxSend():
if param.count_parameter_list:
- print '%s %s = (%s) (pc + %s);' % (indent, param.name, param.type_string(), param.offset)
- need_blank = 1
+ if param.size() != 1 or self.do_swap:
+ print '%s %s = (%s) (pc + %s);' % (indent, param.name, param.type_string(), param.offset)
+ need_blank = 1
if need_blank:
|