mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
vulkan: fix vkResetDescriptorPool validation error
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user