diff --git a/src/SFML/Window/Vulkan.cpp b/src/SFML/Window/Vulkan.cpp index 772f828be..49fff1d16 100644 --- a/src/SFML/Window/Vulkan.cpp +++ b/src/SFML/Window/Vulkan.cpp @@ -27,6 +27,8 @@ //////////////////////////////////////////////////////////// #include +#include + #if defined(SFML_SYSTEM_WINDOWS) #include @@ -73,6 +75,8 @@ bool Vulkan::isAvailable([[maybe_unused]] bool requireGraphics) //////////////////////////////////////////////////////////// VulkanFunctionPointer Vulkan::getFunction([[maybe_unused]] const char* name) { + assert(name && "Name cannot be a null pointer"); + #if defined(SFML_VULKAN_IMPLEMENTATION_NOT_AVAILABLE) return nullptr;