forked from KhronosGroup/Vulkan-Loader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distinguish OOM from json parsing errors
Whenever an invalid JSON file was encoutered, the loader would return VK_ERROR_OUT_OF_HOST_MEMORY because it couldn't distinguish an invalid JSON file from the inability to allocate memory while parsing JSON. This commit adds the necessary logic to be able to tell the two conditions apart as well as adding rudimentary testing of it.
- Loading branch information
1 parent
0c4bd8c
commit 1327d71
Showing
3 changed files
with
147 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters