From 424d00eaf7335e1c6427f40260d55782c3fd902c Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 30 Jun 2023 15:15:00 +0200 Subject: Avoid per-frame chunk copies and don't render block faces between chunks --- src/GFX/Mesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GFX/Mesh.cpp') diff --git a/src/GFX/Mesh.cpp b/src/GFX/Mesh.cpp index b0271bb..1869622 100644 --- a/src/GFX/Mesh.cpp +++ b/src/GFX/Mesh.cpp @@ -2,11 +2,11 @@ namespace MC::GFX { -std::vector Mesh::indices() { +const std::vector& Mesh::indices() const { return m_indices; } -std::vector Mesh::attributes() { +const std::vector& Mesh::attributes() const { return m_attributes; } -- cgit 1.4.1