Skip to content

Commit

Permalink
vulkan: fix vkResetDescriptorPool validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Feb 1, 2025
1 parent 0f39eeb commit 0d21908
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 @@ -107,7 +107,7 @@ void SharedDescriptorPools::newFrame(uint64 frameIndex)
if (!lastFrameIndex.hasValue || lastFrameIndex.value != frameIndex)
{
lastFrameIndex.set(frameIndex);
currentFrame = (size_t)(frameIndex % MAX_FRAMES_IN_FLIGHT);
currentFrame = (size_t)((currentFrame + 1) % MAX_FRAMES_IN_FLIGHT);
currentPool = 0;
for (VkDescriptorPool pool : pools[currentFrame])
vkResetDescriptorPool(device, pool, 0);
Expand Down

0 comments on commit 0d21908

Please sign in to comment.