Fixed testvulkan on macOS (thanks @proton991!)

Fixes https://github.com/libsdl-org/SDL/issues/10351
This commit is contained in:
Sam Lantinga
2024-07-23 08:17:22 -07:00
parent 5c00e54073
commit b499c54af4
2 changed files with 7 additions and 1 deletions

View File

@@ -165,7 +165,7 @@ char const* const* Cocoa_Vulkan_GetInstanceExtensions(SDL_VideoDevice *_this,
Uint32 *count)
{
static const char *const extensionsForCocoa[] = {
VK_KHR_SURFACE_EXTENSION_NAME, VK_EXT_METAL_SURFACE_EXTENSION_NAME
VK_KHR_SURFACE_EXTENSION_NAME, VK_EXT_METAL_SURFACE_EXTENSION_NAME, VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME
};
if(count) {
*count = SDL_arraysize(extensionsForCocoa);