Skip to content

Commit 9366a29

Browse files
committed
Fix uninitialized memory use
1 parent 14a140c commit 9366a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gpu/vulkan/SDL_gpu_vulkan.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11619,7 +11619,7 @@ static Uint8 VULKAN_INTERNAL_GetXRPhysicalDevice(VulkanRenderer *renderer)
1161911619
XrResult xrResult;
1162011620
VulkanExtensions physicalDeviceExtension;
1162111621
Uint32 queueFamilyIndex;
11622-
Uint8 deviceRank;
11622+
Uint8 deviceRank = 0;
1162311623

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

0 commit comments

Comments
 (0)