forked from MoonsideGames/Refresh
fix vert UBO size check
parent
ae44d3ef23
commit
838e840a70
|
@ -4446,7 +4446,7 @@ static void VULKAN_PushVertexShaderParams(
|
||||||
if (
|
if (
|
||||||
renderer->vertexUBOOffset +
|
renderer->vertexUBOOffset +
|
||||||
renderer->currentGraphicsPipeline->vertexUBOBlockSize >=
|
renderer->currentGraphicsPipeline->vertexUBOBlockSize >=
|
||||||
UBO_BUFFER_SIZE * renderer->frameIndex
|
UBO_BUFFER_SIZE * (renderer->frameIndex + 1)
|
||||||
) {
|
) {
|
||||||
REFRESH_LogError("Vertex UBO overflow!");
|
REFRESH_LogError("Vertex UBO overflow!");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue