Skip to content

Commit

Permalink
vulkan: fix a potential error during draws.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Mar 8, 2024
1 parent 3211437 commit c35b9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/vulkan/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void Shader::cmdPushDescriptorSets(VkCommandBuffer commandBuffer, VkPipelineBind
{
auto &info = *(u.second);

if (usesLocalUniformData(&info))
if (!info.active || usesLocalUniformData(&info))
continue;

if (info.baseType == UNIFORM_SAMPLER || info.baseType == UNIFORM_STORAGETEXTURE)
Expand Down

0 comments on commit c35b9cb

Please sign in to comment.