Skip to content

Commit

Permalink
shaderObject: Fix shader binary size when incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
ziga-lunarg committed Sep 10, 2024
1 parent 04194b3 commit da0e666
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions layers/shader_object/shader_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2384,6 +2384,7 @@ static VKAPI_ATTR VkResult VKAPI_CALL GetShaderBinaryDataEXT(VkDevice device, Vk
}

if (*pDataSize < binary_size) {
*pDataSize = 0;
return VK_INCOMPLETE;
}

Expand Down

0 comments on commit da0e666

Please sign in to comment.