Commit d92d9dd1 by Luc Ferron Committed by Commit Bot

Sort the Format_table_autogen.cpp switch case by gl format

Bug:angleproject:2358 Change-Id: I8e5baa53239ab0509683114645fed0e769f43764 Reviewed-on: https://chromium-review.googlesource.com/962321 Commit-Queue: Luc Ferron <lucferron@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 2bfe9f6b
......@@ -229,7 +229,7 @@ def gen_enum_string(all_angle):
def gen_map_switch_string(gl_to_angle):
switch_data = '';
for gl_format in gl_to_angle:
for gl_format in sorted(gl_to_angle.keys()):
angle_format = gl_to_angle[gl_format]
switch_data += " case " + gl_format + ":\nreturn Format::ID::" + angle_format + ";\n"
switch_data += " default:\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment