diff options
author | Jordan Halase <jordan@halase.me> | 2019-11-03 22:50:12 -0600 |
---|---|---|
committer | Jordan Halase <jordan@halase.me> | 2019-11-03 22:50:12 -0600 |
commit | 26f83e1b07021d1cbe2da1b22e004839c15f96d5 (patch) | |
tree | a79f69fd28794685cda27cb100e75b6dd0eb1081 | |
parent | 3c34d801af8ea7cfafd8a78e0613cc0cab0a45fe (diff) |
Use puglStrerror and add note for optional instance extensions
-rwxr-xr-x | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -486,6 +486,8 @@ int rvkCreateWorld(struct RenderVulkan **vkOut) } VkResult result; + // FIXME: Use `vkEnumerateInstanceExtensionProperties` to query for + // debug & validation support or it will fail if not found. //if ((result = rvkCreateInternalInstance(vk, 0, NULL, 0, NULL))) { if ((result = rvkCreateInternalInstance(vk, nInstanceLayers, instanceLayers, nInstanceExtensions, instanceExtensions))) { return -1; @@ -630,7 +632,7 @@ int rvkCreateSurface(struct RenderVulkan *vk, const PuglRect frame) PuglStatus status; if ((status = puglCreateWindow(vk->view, "Vulkan Application Using Pugl"))) { - rvkSetErrMsg(vk, "Could not create window: %d\n", status); + rvkSetErrMsg(vk, "Could not create window: %s\n", puglStrerror(status)); return -1; } |