mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 03:26:15 +08:00
wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable.
Fixes #8468.
This commit is contained in:
@@ -118,12 +118,16 @@ void Wayland_Vulkan_UnloadLibrary(SDL_VideoDevice *_this)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char const* const* Wayland_Vulkan_GetInstanceExtensions(SDL_VideoDevice *_this,
|
char const* const* Wayland_Vulkan_GetInstanceExtensions(SDL_VideoDevice *_this, Uint32 *count)
|
||||||
Uint32 *count)
|
|
||||||
{
|
{
|
||||||
static const char *const extensionsForWayland[] = {
|
static const char *const extensionsForWayland[] = {
|
||||||
VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME
|
VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (count) {
|
||||||
|
*count = SDL_arraysize(extensionsForWayland);
|
||||||
|
}
|
||||||
|
|
||||||
return extensionsForWayland;
|
return extensionsForWayland;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user