mip-mapping related fixes

This commit is contained in:
MihailRis
2024-11-25 15:39:34 +03:00
parent 7ddf3f7537
commit d9277e1b31
4 changed files with 34 additions and 15 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ void ChunksRenderer::drawChunks(
// TODO: minimize draw calls number
for (int i = indices.size()-1; i >= 0; i--) {
auto chunk = chunks.getChunks()[indices[i].index];
auto& chunk = chunks.getChunks()[indices[i].index];
auto mesh = retrieveChunk(indices[i].index, camera, shader, culling);
if (mesh) {