diff --git a/example/triangle.cpp b/example/triangle.cpp index 2ca5da2..f9089b7 100644 --- a/example/triangle.cpp +++ b/example/triangle.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include "../tests/common.h" diff --git a/tests/common.h b/tests/common.h index ea3b4a3..fd5d15d 100644 --- a/tests/common.h +++ b/tests/common.h @@ -32,7 +32,7 @@ void destroy_window_glfw(GLFWwindow* window) { glfwTerminate(); } VkSurfaceKHR create_surface_glfw(VkInstance instance, GLFWwindow* window) { - VkSurfaceKHR surface = nullptr; + VkSurfaceKHR surface = VK_NULL_HANDLE; VkResult err = glfwCreateWindowSurface(instance, window, NULL, &surface); if (err) { const char* error_msg; @@ -42,7 +42,7 @@ VkSurfaceKHR create_surface_glfw(VkInstance instance, GLFWwindow* window) { if (error_msg != nullptr) std::cout << error_msg; std::cout << "\n"; } - surface = nullptr; + surface = VK_NULL_HANDLE; } return surface; }