Rewrite the GLSL ray trace code so it does not use global variables!!
Fix portals not working
This commit is contained in:
parent
445170e33f
commit
c1d0963da4
8 changed files with 151 additions and 171 deletions
|
|
@ -630,7 +630,7 @@ void VkLevelMeshUploader::UploadPortals()
|
|||
|
||||
size_t copysize = range.Size * sizeof(PortalInfo);
|
||||
if (copysize > 0)
|
||||
cmdbuffer->copyBuffer(transferBuffer.get(), Mesh->PortalBuffer.get(), range.Offset * sizeof(PortalInfo), 0, copysize);
|
||||
cmdbuffer->copyBuffer(transferBuffer.get(), Mesh->PortalBuffer.get(), datapos, range.Offset * sizeof(PortalInfo), copysize);
|
||||
datapos += copysize;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue