Skip to content

Is SDL_Vulkan_LoadLibrary using reference counter? #9541

@pc-john

Description

@pc-john

The page https://wiki.libsdl.org/SDL3/SDL_CreateWindow writes about the call to SDL_Vulkan_LoadLibrary made upon SDL_WINDOW_VULKAN flag. And that the corresponding SDL_Vulkan_UnloadLibrary is called when the window is destroyed. However, SDL_Vulkan_LoadLibrary and SDL_Vulkan_UnloadLibrary wiki do not mention anything about reference counting, which is probably bug. If there would not be reference counting, first destroyed SDL window would unload Vulkan, making all remaining SDL Vulkan windows unusable. Are SDL_Vulkan_LoadLibrary and SDL_Vulkan_UnloadLibrary doing reference counting?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions