diff --git a/src/CommandBuffer.hs b/src/CommandBuffer.hs index 70971e0..17b7234 100644 --- a/src/CommandBuffer.hs +++ b/src/CommandBuffer.hs @@ -235,8 +235,7 @@ recordCommandBuffer materialMap <- (liftIO . STM.atomically . STM.readTMVar) =<< asks materialLibrary let draws = compactDraws meshMap materialMap renderObjects - - let drawCommands = V.map + drawCommands = V.map (\(i, RenderObject mesh _ _) -> Vk.DrawIndirectCommand { vertexCount = fromIntegral (V.length $ meshVertices $ meshMap M.! mesh)