Fix some validation errors

This commit is contained in:
Magnus Norddahl 2023-09-11 13:49:39 +02:00
commit b0d182c099
2 changed files with 4 additions and 3 deletions

View file

@ -150,6 +150,7 @@ void VkLightmap::RenderAtlasImage(size_t pageIndex, const TArray<LevelMeshSurfac
if (lights.Pos + lightCount > lights.BufferSize || vertices.Pos + vertexCount > vertices.BufferSize)
{
// Flush scene buffers
fb->GetCommands()->GetTransferCommands()->endRenderPass();
fb->GetCommands()->WaitForCommands(false);
lights.Pos = 0;
vertices.Pos = 0;