瀏覽代碼

cocoa: Don't include KHR_portability_enumeration by default.

This is only useful if the application knows to add the flag introduced by this
extension, and at that point the application can also include the extension
themselves.

Case in point: SDL_gpu_vulkan was already doing this!
Ethan Lee 1 周之前
父節點
當前提交
8a3820500d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video/cocoa/SDL_cocoavulkan.m

+ 1 - 1
src/video/cocoa/SDL_cocoavulkan.m

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