aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvk-layer-generate.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/vk-layer-generate.py b/vk-layer-generate.py
index c78116ca..5d013937 100755
--- a/vk-layer-generate.py
+++ b/vk-layer-generate.py
@@ -1322,7 +1322,9 @@ class ObjectTrackerSubcommand(Subcommand):
using_line += '%sloader_platform_thread_unlock_mutex(&objLock);\n' % (indent)
if len(struct_uses) > 0:
using_line += ' if (skipCall)\n'
- if proto.ret != "void":
+ if proto.ret == "VkBool32":
+ using_line += ' return VK_FALSE;\n'
+ elif proto.ret != "void":
using_line += ' return VK_ERROR_VALIDATION_FAILED_EXT;\n'
else:
using_line += ' return;\n'