diff options
| author | Jamie Madill <jmadill@chromium.org> | 2016-04-04 12:15:39 -0400 |
|---|---|---|
| committer | Dustin Graves <dustin@lunarg.com> | 2016-04-05 14:29:08 -0600 |
| commit | 5badb98fb28aafe2bbc77cf27bf25d5a194db465 (patch) | |
| tree | 837a7b4ffc4e2b74e1e82284c08c3437ad67dedf | |
| parent | 96a38292c188fc023b1f40e024329631d4b3d25c (diff) | |
| download | usermoji-5badb98fb28aafe2bbc77cf27bf25d5a194db465.tar.xz | |
layers: Fix return values of bool functions.
These functions were returning VK_ERROR_VALIDATION_FAILED_EXT,
which was giving a warning in Visual Studio. The app shouldn't be
checking for non-bool return values of these functions.
Change-Id: I9924a25b1c49ad6973c8915be1dd7aea4cc0edf4
| -rwxr-xr-x | vk-layer-generate.py | 4 |
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' |
