From c7de7f04077b07757ffef63ce6771a9d561945d5 Mon Sep 17 00:00:00 2001 From: Eleni Maria Stea Date: Mon, 22 Nov 2021 09:52:45 +0200 Subject: [PATCH] fixed return values in main --- src/main.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cc b/src/main.cc index 6c3d70d..5ec96d4 100644 --- a/src/main.cc +++ b/src/main.cc @@ -126,14 +126,14 @@ int main(int argc, char** argv) if (glfwVulkanSupported() != GLFW_TRUE) { fprintf(stderr, "Vulkan is not supported on this device.\n"); - return false; + return 1; } glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); if (!(win = glfwCreateWindow(win_w, win_h, "helloworld rt", 0, 0))) { fprintf(stderr, "Failed to create GLFW window\n"); - return false; + return 1; } glfwSetKeyCallback(win, clb_key); @@ -147,7 +147,7 @@ int main(int argc, char** argv) if (!vk_init_ctx_for_rendering(&vk_core, true, vk_enable_layers)) { fprintf(stderr, "Failed to initialize Vulkan context.\n"); - return false; + return 1; } /*********************************************************** @@ -158,7 +158,7 @@ int main(int argc, char** argv) if (glfwCreateWindowSurface(vk_core.inst, win, 0, &vk_surf) != VK_SUCCESS) { fprintf(stderr, "Failed to create XCB surface.\n"); - return false; + return 1; } /*********************************************************** -- 1.7.10.4