VulkanTutorial icon indicating copy to clipboard operation
VulkanTutorial copied to clipboard

GlfwInit should be inside an if statement

Open frederikja163 opened this issue 2 years ago • 0 comments

glfwInit should be placed inside an if statement like so

if (!glfwInit()){
    // Handle glfw error.
}

To handle the glfw error it might be best to throw an exception. Might aswell teach glfw best practices from day 1 :) https://www.glfw.org/docs/3.3/quick.html

frederikja163 avatar Jul 07 '23 22:07 frederikja163