Skip to content

Commit

Permalink
shaderObject: Fix enumerate device extension properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ziga-lunarg committed Aug 23, 2024
1 parent df50082 commit b71eb2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layers/shader_object/shader_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,9 @@ static VKAPI_ATTR VkResult VKAPI_CALL EnumerateDeviceExtensionProperties(VkPhysi
}
if (has_native_shader_object) {
if (pProperties) {
if (count < *pPropertyCount) {
*pPropertyCount = count;
}
memcpy(pProperties, all_properties, *pPropertyCount * sizeof(VkExtensionProperties));
} else {
*pPropertyCount = count;
Expand Down

0 comments on commit b71eb2d

Please sign in to comment.