diff --git a/src/vulkan.c b/src/vulkan.c index 3624ba52..586a2593 100644 --- a/src/vulkan.c +++ b/src/vulkan.c @@ -269,8 +269,8 @@ GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, { _GLFWwindow* window = (_GLFWwindow*) handle; assert(window != NULL); - assert(surface != NULL); + *surface = VK_NULL_HANDLE; _GLFW_REQUIRE_INIT_OR_RETURN(VK_ERROR_INITIALIZATION_FAILED);