add 'graphics.chunk-max-vertices', 'graphics.chunk-max-renderers' settings

This commit is contained in:
MihailRis
2024-10-01 23:25:25 +03:00
parent a65cf6ed66
commit e750d90ff4
4 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ BlocksRenderer::BlocksRenderer(
const ContentGfxCache* cache,
const EngineSettings* settings
) : content(content),
vertexBuffer(std::make_unique<float[]>(capacity)),
vertexBuffer(std::make_unique<float[]>(capacity * VERTEX_SIZE)),
indexBuffer(std::make_unique<int[]>(capacity)),
vertexOffset(0),
indexOffset(0),