SDL: SDL_Vulkan_GetInstanceExtensions: Require Vulkan

From a2b2464b46c62b87e669d88268c7a31439eb676d Mon Sep 17 00:00:00 2001
From: Hunter Kvalevog <[EMAIL REDACTED]>
Date: Sat, 7 Jan 2023 11:17:16 -0600
Subject: [PATCH] SDL_Vulkan_GetInstanceExtensions: Require Vulkan

Document that this function will fail if the user doesn't call
SDL_Vulkan_LoadLibrary (either explicitly or via SDL_CreateWindow)
beforehand.
---
 include/SDL3/SDL_vulkan.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/SDL3/SDL_vulkan.h b/include/SDL3/SDL_vulkan.h
index 55c8d1ab6ebc..169ab8767ac0 100644
--- a/include/SDL3/SDL_vulkan.h
+++ b/include/SDL3/SDL_vulkan.h
@@ -130,6 +130,9 @@ extern DECLSPEC void SDLCALL SDL_Vulkan_UnloadLibrary(void);
  * Get the names of the Vulkan instance extensions needed to create a surface
  * with SDL_Vulkan_CreateSurface.
  *
+ * This should be called after either calling SDL_Vulkan_LoadLibrary() or
+ * creating an SDL_Window with the `SDL_WINDOW_VULKAN` flag.
+ *
  * If `pNames` is NULL, then the number of required Vulkan instance extensions
  * is returned in `pCount`. Otherwise, `pCount` must point to a variable set
  * to the number of elements in the `pNames` array, and on return the variable