summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Halase <jordan@halase.me>2019-11-03 22:50:12 -0600
committerJordan Halase <jordan@halase.me>2019-11-03 22:50:12 -0600
commit26f83e1b07021d1cbe2da1b22e004839c15f96d5 (patch)
treea79f69fd28794685cda27cb100e75b6dd0eb1081
parent3c34d801af8ea7cfafd8a78e0613cc0cab0a45fe (diff)
Use puglStrerror and add note for optional instance extensions
-rwxr-xr-xmain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 28fe4d0..46f381b 100755
--- a/main.c
+++ b/main.c
@@ -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;
}