Skip to content

Commit

Permalink
Fix uninitialized memory use
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Dec 21, 2024
1 parent 14a140c commit 9366a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu/vulkan/SDL_gpu_vulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -11619,7 +11619,7 @@ static Uint8 VULKAN_INTERNAL_GetXRPhysicalDevice(VulkanRenderer *renderer)
XrResult xrResult;
VulkanExtensions physicalDeviceExtension;
Uint32 queueFamilyIndex;
Uint8 deviceRank;
Uint8 deviceRank = 0;

PFN_xrGetVulkanGraphicsDevice2KHR xrGetVulkanGraphicsDevice2KHR;
if((xrResult = xrGetInstanceProcAddr(renderer->xrInstance, "xrGetVulkanGraphicsDevice2KHR", (PFN_xrVoidFunction*)&xrGetVulkanGraphicsDevice2KHR)) != XR_SUCCESS) {
Expand Down

0 comments on commit 9366a29

Please sign in to comment.