when using the low level vertexmain and pixelmain entry points
it can happen that there are no local uniforms used.
This commit is contained in:
niki
2024-03-08 13:42:05 +01:00
parent 8dae72b88e
commit ca0264e906
+1 -1
View File
@@ -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])