Split doom specific surface data from common/gpu surface data

This commit is contained in:
Magnus Norddahl 2024-08-20 02:06:05 +02:00
commit 356ad2fe9f
9 changed files with 110 additions and 97 deletions

View file

@ -196,7 +196,7 @@ void VkLightmapper::Render()
// Paint all surfaces visible in the tile
for (int surfaceIndex : targetTile->Surfaces)
{
LevelMeshSurface* surface = mesh->GetSurface(surfaceIndex);
LevelMeshSurface* surface = &mesh->Mesh.Surfaces[surfaceIndex];
pc.SurfaceIndex = surfaceIndex;
VkDrawIndexedIndirectCommand cmd;