glapi: fix argument parsing in glX_proto_recv.py

One of the plugins I use with vim "helpfully" added an underscore to the
front of mode for kicks.

Obviously this isn't a feature used very often because it's been broken
since d986cb7c70 (since May 20th), and no one has noticed.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
This commit is contained in:
Dylan Baker 2015-07-02 10:25:41 -07:00 committed by Emil Velikov
parent 461b4b103f
commit b06a6852ff

View file

@ -549,9 +549,9 @@ def main():
"""Main function."""
args = _parser()
if args._mode == "dispatch_c":
if args.mode == "dispatch_c":
printer = PrintGlxDispatchFunctions(args.swap)
elif args._mode == "dispatch_h":
elif args.mode == "dispatch_h":
printer = PrintGlxDispatch_h()
api = gl_XML.parse_GL_API(