mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
fix msvc error C2466: cannot allocate an array of constant size 0
This commit is contained in:
parent
171cbb48d0
commit
2327f0ddf8
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ ChunksRenderer::ChunksRenderer(
|
||||||
logger.info() << "created " << threadPool.getWorkersCount() << " workers";
|
logger.info() << "created " << threadPool.getWorkersCount() << " workers";
|
||||||
|
|
||||||
const vattr attrs[]{ {3}, {2}, {1}, {0} };
|
const vattr attrs[]{ {3}, {2}, {1}, {0} };
|
||||||
float buf[]{};
|
float buf[1]{};
|
||||||
sortedMesh = std::make_unique<Mesh>(buf, 0, attrs);
|
sortedMesh = std::make_unique<Mesh>(buf, 0, attrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue