Skip to content

Commit

Permalink
igl | vulkan | Add missing NULL-check
Browse files Browse the repository at this point in the history
Reviewed By: syeh1

Differential Revision: D63864477

fbshipit-source-id: e1a6b547e0fda4bc1f6897b372a0fd58d9771cfc
  • Loading branch information
corporateshark authored and facebook-github-bot committed Oct 4, 2024
1 parent 98206da commit 309ff96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/igl/vulkan/VulkanHelpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ VkResult ivkVmaCreateAllocator(const struct VulkanFunctionTable* vt,

void ivkUpdateGlslangResource(glslang_resource_t* res, const VkPhysicalDeviceProperties* props) {
const VkPhysicalDeviceLimits* limits = props ? &props->limits : NULL;
if (!limits) {
if (!limits || !res) {
return;
}

Expand Down

0 comments on commit 309ff96

Please sign in to comment.