Skip to content

Commit

Permalink
gpu: Fix forward declaration and inclusion of PrivateGPUDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Feb 24, 2025
1 parent a7bc6c5 commit db817a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/gpu/SDL_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@

#ifndef SDL_GPU_DISABLED
static const SDL_GPUBootstrap *backends[] = {
#ifdef SDL_GPU_PRIVATE
&PrivateGPUDriver,
#endif
#ifdef SDL_GPU_METAL
&MetalDriver,
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/gpu/SDL_sysgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ extern "C" {
extern SDL_GPUBootstrap VulkanDriver;
extern SDL_GPUBootstrap D3D12Driver;
extern SDL_GPUBootstrap MetalDriver;
extern SDL_GPUBootstrap PS5Driver;
extern SDL_GPUBootstrap PrivateGPUDriver;

#ifdef __cplusplus
}
Expand Down

0 comments on commit db817a3

Please sign in to comment.