summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-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;
}