layers: Add return value for Generic vkCreateInstance() function
authorTobin Ehlis <tobin@lunarg.com>
Thu, 17 Sep 2015 22:27:04 +0000 (16:27 -0600)
committerTobin Ehlis <tobin@lunarg.com>
Thu, 17 Sep 2015 22:27:04 +0000 (16:27 -0600)
vk-layer-generate.py

index 93fca3a49d43fdf5f8757e17938c472763106258..26873d45b3602c8652f58e388dc55f65ff39c03d 100755 (executable)
@@ -673,6 +673,7 @@ class GenericLayerSubcommand(Subcommand):
                          '    if (result == VK_SUCCESS) {\n'
                          '        createInstanceRegisterExtensions(pCreateInfo, *pInstance);\n'
                          '    }\n'
+                         '    return result;\n'
                          '}\n' % (qual, decl, ret_val, proto.c_call()))
         else:
             funcs.append('%s' % self.lineinfo.get())