mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
vulkan: fix #2032
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:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user