loader: Fix disptach table init for non-dispatchable functions
authorJon Ashburn <jon@lunarg.com>
Mon, 13 Apr 2015 23:47:29 +0000 (17:47 -0600)
committerChia-I Wu <olv@lunarg.com>
Thu, 16 Apr 2015 09:48:20 +0000 (17:48 +0800)
vk-generate.py

index 41ead48..29b9d17 100755 (executable)
@@ -221,6 +221,9 @@ class DispatchTableOpsSubcommand(Subcommand):
             elif self.is_dispatchable_object_first_param(proto):
                 stmts.append("table->%s = (PFN_vk%s) gpa(gpu, \"vk%s\");" %
                         (proto.name, proto.name, proto.name))
+            else:
+                stmts.append("table->%s = vk%s; /* non-dispatchable */" %
+                             (proto.name, proto.name))
         stmts.append("#endif")
 
         func = []