fix vert UBO size check

submit_rewrite
cosmonaut 2020-12-23 13:14:36 -08:00
parent ae44d3ef23
commit 838e840a70
1 changed files with 1 additions and 1 deletions

View File

@ -4446,7 +4446,7 @@ static void VULKAN_PushVertexShaderParams(
if (
renderer->vertexUBOOffset +
renderer->currentGraphicsPipeline->vertexUBOBlockSize >=
UBO_BUFFER_SIZE * renderer->frameIndex
UBO_BUFFER_SIZE * (renderer->frameIndex + 1)
) {
REFRESH_LogError("Vertex UBO overflow!");
return;