Skip to content

Commit

Permalink
gpu: Fix warning on GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Dec 24, 2024
1 parent 9deb021 commit 4ffbd81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gpu/vulkan/SDL_gpu_vulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -11972,7 +11972,7 @@ static bool VULKAN_PrepareDriver(SDL_VideoDevice *_this, SDL_PropertiesID props)

#ifdef HAVE_GPU_OPENXR
XrResult xrResult;
XrInstancePfns *instancePfns;
XrInstancePfns *instancePfns = NULL;
XrInstance xrInstance = XR_NULL_HANDLE;
XrSystemId xrSystemId = XR_NULL_HANDLE;
bool xr = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_XR_ENABLE, false);
Expand Down Expand Up @@ -12062,7 +12062,7 @@ static bool VULKAN_PrepareDriver(SDL_VideoDevice *_this, SDL_PropertiesID props)
renderer->vkDestroyInstance(renderer->instance, NULL);
}
#ifdef HAVE_GPU_OPENXR
if (xr) {
if (instancePfns) {
instancePfns->xrDestroyInstance(xrInstance);
SDL_free(instancePfns);
SDL_OPENXR_UnloadLoaderSymbols();
Expand Down

0 comments on commit 4ffbd81

Please sign in to comment.