diff --git a/src/modules/graphics/vulkan/Shader.cpp b/src/modules/graphics/vulkan/Shader.cpp index cff26e4d4..0b8692ad8 100644 --- a/src/modules/graphics/vulkan/Shader.cpp +++ b/src/modules/graphics/vulkan/Shader.cpp @@ -229,7 +229,7 @@ void Shader::newFrame() streamBuffers.clear(); streamBuffers.push_back(new StreamBuffer(vgfx, BUFFERUSAGE_UNIFORM, newSize)); } - else + else if (streamBuffers.size() == 1) streamBuffers.at(0)->nextFrame(); for (VkDescriptorPool pool : descriptorPools[currentFrame])