fix msvc error C2466: cannot allocate an array of constant size 0

This commit is contained in:
MihailRis 2024-11-16 09:31:33 +03:00
parent 171cbb48d0
commit 2327f0ddf8

View File

@ -81,7 +81,7 @@ ChunksRenderer::ChunksRenderer(
logger.info() << "created " << threadPool.getWorkersCount() << " workers";
const vattr attrs[]{ {3}, {2}, {1}, {0} };
float buf[]{};
float buf[1]{};
sortedMesh = std::make_unique<Mesh>(buf, 0, attrs);
}