Skip to content

Commit

Permalink
Autodesk fix: check for vkGetPhysicalDeviceXlibPresentationSupportKHR…
Browse files Browse the repository at this point in the history
… before using
  • Loading branch information
pixar-oss committed Oct 10, 2024
1 parent 367d84a commit cbd73ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pxr/imaging/hgiVulkan/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ _SupportsPresentation(
vkGetInstanceProcAddr(
vkInstance,
"vkGetPhysicalDeviceXlibPresentationSupportKHR");
return vkGetPhysicalDeviceXlibPresentationSupportKHR(
return vkGetPhysicalDeviceXlibPresentationSupportKHR &&
vkGetPhysicalDeviceXlibPresentationSupportKHR(
physicalDevice, familyIndex, dsp, visualID);
#elif defined(VK_USE_PLATFORM_METAL_EXT)
// Presentation currently always supported on Metal / MoltenVk
Expand Down

0 comments on commit cbd73ac

Please sign in to comment.