sdl2-compat: implement SDL_Vulkan_GetInstanceExtensions() after SDL3 changes.

From b75edbbfb6526474db9bd13c1da5737a49085549 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 8 Jan 2023 20:11:32 +0300
Subject: [PATCH] implement SDL_Vulkan_GetInstanceExtensions() after SDL3
 changes.

---
 src/sdl2_compat.c | 8 ++++++++
 src/sdl3_syms.h   | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 5b09845..8b16f5a 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -3466,6 +3466,14 @@ SDL_RenderCopyEx(SDL_Renderer *renderer, SDL_Texture *texture,
     return SDL3_RenderTextureRotated(renderer, texture, srcrect, pdstfrect, angle, pfcenter, flip);
 }
 
+/* SDL3 removed window parameter from SDL_Vulkan_GetInstanceExtensions() */
+DECLSPEC SDL_bool SDLCALL
+SDL_Vulkan_GetInstanceExtensions(SDL_Window *window, unsigned int *pCount, const char **pNames)
+{
+    (void) window;
+    return SDL3_Vulkan_GetInstanceExtensions(pCount, pNames);
+}
+
 
 /* SDL3 doesn't have 3dNow. */
 #if defined(__GNUC__) && defined(__i386__)
diff --git a/src/sdl3_syms.h b/src/sdl3_syms.h
index f39e1aa..cc7c2b3 100644
--- a/src/sdl3_syms.h
+++ b/src/sdl3_syms.h
@@ -610,7 +610,7 @@ SDL3_SYM_PASSTHROUGH(SDL_Surface*,DuplicateSurface,(SDL_Surface *a),(a),return)
 SDL3_SYM_PASSTHROUGH(int,Vulkan_LoadLibrary,(const char *a),(a),return)
 SDL3_SYM_PASSTHROUGH(void*,Vulkan_GetVkGetInstanceProcAddr,(void),(),return)
 SDL3_SYM_PASSTHROUGH(void,Vulkan_UnloadLibrary,(void),(),)
-SDL3_SYM_PASSTHROUGH(SDL_bool,Vulkan_GetInstanceExtensions,(SDL_Window *a, unsigned int *b, const char **c),(a,b,c),return)
+SDL3_SYM(SDL_bool,Vulkan_GetInstanceExtensions,(unsigned int *b, const char **c),(a,b,c),return)
 SDL3_SYM_PASSTHROUGH(SDL_bool,Vulkan_CreateSurface,(SDL_Window *a, VkInstance b, VkSurfaceKHR *c),(a,b,c),return)
 SDL3_SYM_PASSTHROUGH(void,Vulkan_GetDrawableSize,(SDL_Window *a, int *b, int *c),(a,b,c),)
 SDL3_SYM_PASSTHROUGH(void,GetMemoryFunctions,(SDL_malloc_func *a, SDL_calloc_func *b, SDL_realloc_func *c, SDL_free_func *d),(a,b,c,d),)