diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-05-22 12:01:50 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-06-17 20:56:35 -0600 |
| commit | ae2e4849994cd636a0321de617b7743b2b9b429b (patch) | |
| tree | 671e7724d436614de381bca54a02fd58ab36c12d | |
| parent | 4836620a667789e5be79a9917a214fd1edf749cd (diff) | |
| download | usermoji-ae2e4849994cd636a0321de617b7743b2b9b429b.tar.xz | |
genericLayer: Fix generation code
| -rwxr-xr-x | vk-layer-generate.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vk-layer-generate.py b/vk-layer-generate.py index 64b86130..b3f8402a 100755 --- a/vk-layer-generate.py +++ b/vk-layer-generate.py @@ -486,7 +486,7 @@ class GenericLayerSubcommand(Subcommand): if proto.ret != "void": ret_val = "%s result = " % proto.ret stmt = " return result;\n" - elif proto.name == "CreateDevice": + if proto.name == "CreateDevice": funcs.append('%s%s\n' '{\n' ' %snextInstanceTable.%s;\n' @@ -495,12 +495,6 @@ class GenericLayerSubcommand(Subcommand): ' }\n' '%s' '}' % (qual, decl, ret_val, proto.c_call(), stmt)) - elif proto.name == "DestroyObject": - funcs.append('%s%s\n' - '{\n' - ' %snextTable.%s;\n' - '%s' - '}' % (qual, decl, ret_val, proto.c_call(), stmt)) else: funcs.append('%s%s\n' '{\n' |
