layers: Remove object map before vkDestroy*
authorMike Stroyan <mike@LunarG.com>
Mon, 28 Sep 2015 19:47:29 +0000 (13:47 -0600)
committerMike Stroyan <mike@LunarG.com>
Mon, 28 Sep 2015 19:49:39 +0000 (13:49 -0600)
Don't use object as dispatchable after destroy.

vk-layer-generate.py

index bec7d6cf44d2a9e5026dca487e0d4868e1ebc00d..857249f10db636caf3b1d3c2c651c2765b0a310a 100755 (executable)
@@ -1625,10 +1625,11 @@ class ObjectTrackerSubcommand(Subcommand):
             funcs.append('%s%s\n'
                      '{\n'
                      '%s'
+                     '%s'
                      '    %sget_dispatch_table(ObjectTracker_%s_table_map, %s)->%s;\n'
-                     '%s%s'
                      '%s'
-                     '}' % (qual, decl, using_line, ret_val, table_type, dispatch_param, proto.c_call(), create_line, destroy_line, stmt))
+                     '%s'
+                     '}' % (qual, decl, using_line, destroy_line, ret_val, table_type, dispatch_param, proto.c_call(), create_line, stmt))
         return "\n\n".join(funcs)
 
     def generate_body(self):