From ca0264e90628a35c652fb5d29ad0b642586acbd7 Mon Sep 17 00:00:00 2001 From: niki Date: Fri, 8 Mar 2024 13:42:05 +0100 Subject: [PATCH] vulkan: fix #2032 when using the low level vertexmain and pixelmain entry points it can happen that there are no local uniforms used. --- src/modules/graphics/vulkan/Shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])