Browse Source

Merge pull request #2034 from nikeinikei/main

Fix #2032
Sasha Szpakowski 1 year ago
parent
commit
5f3b9574b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/vulkan/Shader.cpp

+ 1 - 1
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])