Skip to content

Commit

Permalink
Rename VulkanDriver to avoid conflict with statically linked SDL3
Browse files Browse the repository at this point in the history
  • Loading branch information
M. P. Halpin authored and flibitijibibo committed Oct 25, 2024
1 parent b6c8692 commit 174c9f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/FNA3D.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static const FNA3D_Driver *drivers[] = {
&OpenGLDriver,
#endif
#if FNA3D_DRIVER_VULKAN /* TODO: Bump this to the top when Vulkan is done! */
&VulkanDriver,
&LegacyVulkanDriver,
#endif
#if FNA3D_DRIVER_GNMX
&GNMXDriver,
Expand Down
2 changes: 1 addition & 1 deletion src/FNA3D_Driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ typedef struct FNA3D_Driver
);
} FNA3D_Driver;

FNA3D_SHAREDINTERNAL FNA3D_Driver VulkanDriver;
FNA3D_SHAREDINTERNAL FNA3D_Driver LegacyVulkanDriver;
FNA3D_SHAREDINTERNAL FNA3D_Driver D3D11Driver;
FNA3D_SHAREDINTERNAL FNA3D_Driver OpenGLDriver;
FNA3D_SHAREDINTERNAL FNA3D_Driver SDLGPUDriver;
Expand Down
2 changes: 1 addition & 1 deletion src/FNA3D_Driver_Vulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -12101,7 +12101,7 @@ static FNA3D_Device* VULKAN_CreateDevice(
return result;
}

FNA3D_Driver VulkanDriver = {
FNA3D_Driver LegacyVulkanDriver = {
"Vulkan",
VULKAN_PrepareWindowAttributes,
VULKAN_CreateDevice
Expand Down

0 comments on commit 174c9f6

Please sign in to comment.