mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add 'graphics.chunk-max-vertices', 'graphics.chunk-max-renderers' settings
This commit is contained in:
parent
a65cf6ed66
commit
e750d90ff4
4 changed files with 11 additions and 7 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue